Can someone suggest how I can convert an image into a byte array .. and vice versa. If someone has some code samples, then I will be able to help. I am developing a WPF application and am able to find the stream reader.
Sample code to change an image by a byte array
Public Byte ImageToByteArray (System.Drawing.Image imageIn) {(var ms = new MemoryStream ()) {imageIn.Save (MS, System.Drawing.Imaging.ExampleFormat.Gif); Return to MS. ToArray (); }}
Comments
Post a Comment