how to download img from html img tag

N

news.austin.rr.com

Hi

I need to download an image (img) from a website without getting the entire
page. If i already have the HTML img tag and line how can i just download
the image and save it local?

thanks
 
B

Brock Allen

Check out HttpWebRequest and HttpWebResponse classes in System.Net -- it
is very easy to do.
 
S

Steve C. Orr [MVP, MCSD]

In VB2005 you can do this with a single line of code:

My.Computer.Network.DownloadFile(URL, localFilename)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top