Save bitmap image in CF

  • Thread starter Thread starter Saya
  • Start date Start date
S

Saya

Hi,
Another problem turned up: how do I save a bitmap image, acquired via
a HttpWebRequest, under CF?
Code snippet:
wReq=(HttpWebRequest)WebRequest.Create(sURL);
wRes=(HttpWebResponse)(wReq).GetResponse();
str=wRes.GetResponseStream();
Image imgImage=new Bitmap(str);

The image is then displayed in a picturebox and will be annotated by
the user. After doing his stuff, the user quits and the original image
(the one prior to the annotation) must be displayed again.
The situation is: I cannot do a "bitmap.Save" in CF - it's
unsupported.
How should I save the original image and easily re-display it again?

Thank you for your help.
Saya
 
..... Forget this question!
Just realised that the whole community is gasping for CF 2.0 with its
Image.Save() ability!

;-( Saya
 
Hi Alex,
Thank you for joining this thread and pointing me to the MSDN link
(article of Geoff Schwab/Excell Data Corporation and Tim
Gerken/Microsoft Corporation).
I've looked into it and got a 'mixed feeling'; it indeed can give a
solution to my situation, on the other hand it gives me a
'Assmebly-code' feeling, seeing its complexity - this of course in
comparison to the C# language.
Anyway, I'll stack this method in my 'memory-bank'; I appreciate
your involvement.
Greetz, Saya
======================================================
 
Back
Top