471,338 Members | 1,028 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Saving images from the web with GetResponseStream()

I'm saving pictures on my harddrive from our webcam with GetResponseStream()
.. Everything works fine, but after approximately 1h identical images are
being saved. I checked the webpage but those pictures are still being

Code snippet:
req = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(fullpath);
req.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Return request in a response stream
res = (System.Net.HttpWebResponse) req.GetResponse();
System.IO.Stream str = res.GetResponseStream();
Image img = Image.FromStream(str);
img.Save(fileName, System.Drawing.Imaging.ImageFormat.Jpeg);
Jul 22 '05 #1
0 2740

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Umesh | last post: by
5 posts views Thread by Thaynann | last post: by
reply views Thread by Umesh | last post: by
1 post views Thread by M Keeton | last post: by
reply views Thread by =?Utf-8?B?Sm9lIFRhdmFyZXM=?= | last post: by
6 posts views Thread by Eddie | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.