What is the stream format? BMP? JPG? PNG? What kind of device? Do you have
Service Pack 3 installed?
--
Alex Feinman
---
Visit
http://www.opennetcf.org
"Federico Del Bene" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have this piece of code perfectly working on the full framework:
>
> -----------------
> byte[] b = binaryReader.ReadBytes(145206);
> MemoryStream ms = new MemoryStream(b);
> ms.Seek(0,System.IO.SeekOrigin.Begin);
> System.Drawing.Bitmap bm = new System.Drawing.Bitmap(ms);
> -----------------
>
> But on the compact one it generates an ArgumentException on the last line.
> Any idea about the problem?
>
> Thanks,
> Federico Del Bene
>