Link to home
Start Free TrialLog in
Avatar of JosephEricDavis
JosephEricDavis

asked on

ASP.NET download remote image from remote server via http

I'm trying to download an image from a remote website via http.  What I've got so far is

WebRequest wr = WebRequest.Create(src);
Image img = Image.FromStream(wr.GetResponse().GetResponseStream());
img.Save("mydownload.gif");

I got this code from an example I found on online.  But the Image class doesn't seem to have a From Stream method.

How do I convert the response stream into an image that I can save to my web server?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of geowrian
geowrian
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial