Click here to Skip to main content
15,915,093 members

Comments by fasan21 (Top 2 by date)

fasan21 15-Aug-11 1:36am View    
Hi John

Did you ever manage to figure this one out?

A pain in the bum it is :)
fasan21 12-Aug-11 6:37am View    
I think maybe I am serializing the image incorrectly.

With your solution I get the following error :
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Here is my code for serializing now:

Bitmap myImage = new Bitmap(s);

MemoryStream stream = new MemoryStream();
myImage.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);
Byte[] bytes = stream.ToArray();

Am I doing somthing wrong?