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.GetRes ponse().Ge tResponseS tream());
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
WebRequest wr = WebRequest.Create(src);
Image img = Image.FromStream(wr.GetRes
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.