//grab icon
Uri uri = new Uri("valid url to image
HttpWebRequest httpRequest = (HttpWebRequest)HttpWebRequest.Create(uri);
HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();
Stream imageStream = httpResponse.GetResponseStream();
Bitmap buddyIcon = new Bitmap(imageStream);
httpResponse.Close();
imageStream.Close();
//save icon as jpeg
string iconFilePath = Path.Combine(FullContactsPath, contact.UserId + ".jpg");
buddyIcon.Save(iconFilePath, ImageFormat.Jpeg);
3 comments:
Thanks for this.. it's proved very useful.
Great Man.It really works.
a simple and too the point code.
I like it
Hi,Could you tell me how to uplaod the images on website in windows mobile 6.
Regards
john
Post a Comment