Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save jpg from WebSite

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
US
Hi
I need to download an image from a website. I can not seem to do this. When I pass the URL to the StreamReader object I get an error back saying "URI Format are Not Supported". I have even tried to just make the image source of a picture box the url and that to sends back the same message.

Any Idea's?

Thanks
 
If you know the URL of the image (for example " you should be able to create a System.Net.HttpWebRequest object for it and get back a response stream. Then create a new Bitmap object from the stream, and save it to your local hard drive.

HTH

-dragonwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top