Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > how to download img from html img tag

Reply
Thread Tools

how to download img from html img tag

 
 
news.austin.rr.com
Guest
Posts: n/a
 
      04-27-2005
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


 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-27-2005
Check out HttpWebRequest and HttpWebResponse classes in System.Net -- it
is very easy to do.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> 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
>




 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-27-2005
In VB2005 you can do this with a single line of code:

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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



"news.austin.rr.com" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML.Tag.BASE same as HTML.Tag.A carlbernardi@gmail.com Java 1 11-29-2006 03:41 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Problem: <img></img> Philipp Lenssen XML 15 07-03-2005 09:23 AM
Adjusting the SCR Property in the IMG html tag news.verizon.net HTML 3 06-21-2004 05:09 PM
How to set the src of a html <img> tag to a string returned from a jsp page? Antti Nummiaho Java 7 11-17-2003 03:39 PM



Advertisments