Displaying a JPG or GIF using Base64 Encoded Stream

  • Thread starter Thread starter Francis Shanahan
  • Start date Start date
F

Francis Shanahan

All,
I have written a desktop app which takes a Base64 encoded Stream and creates
an image from it.

The data in the stream represents a JPG or GIF image which is best in my as
I need to keep the size down and BMP data is too large.

The problem I'm having is that the Compact Framework doesn't support the
APIs I'm using in the desktop application.

Can anyone help me accomplish the same task but with Compact Framework code?

I'm reading the stream in using an XMLReader and you can assume I have it in
memory. The code I use in the desktop application is to create an Image
object and use the FromStream API to load it up but this is not supported in
the Compact Framework.

So far I have only seen the Bitmap supported in the Compact Framework.

Thanks,
-fs
 
Francis,

I would recommend creating a memory stream, then loading the Bitmap from
the resulting MemoryStream.

Bruce Johnson
..NET Compact Framework

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top