How to convert image to an array of bytes

Discussion in 'Questions (Windows Mobile)' started by kolbe, Feb 4, 2008.

  1. kolbe

    kolbe Active Member Licensed User

    Hello all,

    Any ideas on how to convert and .image to an array of bytes. I think I could use .embedfile and then read the bytes out of that file. I could also use dzimage library or imagelibex to save to file.

    It would be nice to avoid having to write to a file first.

    Thanks
     
  2. dzt

    dzt Active Member Licensed User

    dzImage has an ImageToByteArray method
     
  3. kolbe

    kolbe Active Member Licensed User

    That will work. Thanks for the work on that library!

    Thanks dzt.
     
Loading...