Displaying a JPG or GIF using Base64 Encoded Stream

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
 
B

Bruce Johnson [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top