G
Guest
I have converted an image to byte[] using following code (in VS2005, CF 2.0,
WM 2003)
byte[] output;
MemoryStream ms = new MemoryStream();
inputImage.Save(ms, ImageFormat.Jpeg);
output = ms.ToArray();
Now i want to change it back but the code below doesn't work
Image newImage;
ms2 = new MemoryStream(output, 0, output.Length);
ms2.Write(output, 0, output.Length);
newImage = Image.FromStream(ms, true);
VS2005 says there is no FromStream in "Image".
Thanks.
WM 2003)
byte[] output;
MemoryStream ms = new MemoryStream();
inputImage.Save(ms, ImageFormat.Jpeg);
output = ms.ToArray();
Now i want to change it back but the code below doesn't work
Image newImage;
ms2 = new MemoryStream(output, 0, output.Length);
ms2.Write(output, 0, output.Length);
newImage = Image.FromStream(ms, true);
VS2005 says there is no FromStream in "Image".
Thanks.