downloading images...

  • Thread starter Thread starter bongoo
  • Start date Start date
B

bongoo

How could I download images and get list of URLs on some web page?
I tried using system.io.webclient, but I don't know how...
 
bongoo said:
How could I download images and get list of URLs on some web page?
I tried using system.io.webclient, but I don't know how...


\\\
Dim wc As New WebClient()
wc.DownloadFile(<URL>, <local file name>)
///
 
Herfried K. Wagner said:
\\\
Dim wc As New WebClient()
wc.DownloadFile(<URL>, <local file name>)
///


What I'm doing is:

b = new weclient()
dim myDataBuffer as byte() = b.downloadData(http://www.hotmail.com)
dim Download as string = system.text.encoding.ascii.getstring(myDataBuffer)

and I receive a HTML part..
does it means that I need to make a parser by my own?
 
bongoo said:
b = new weclient()
dim myDataBuffer as byte() = b.downloadData(http://www.hotmail.com)
dim Download as string =
system.text.encoding.ascii.getstring(myDataBuffer)

and I receive a HTML part..
does it means that I need to make a parser by my own?

Parsing an HTML file:

MSHTML Reference
<URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/reference.asp>

- or -

..NET Html Agility Pack: How to use malformed HTML just like it was
well-formed XML...
<URL:http://blogs.msdn.com/smourier/archive/2003/06/04/8265.aspx>

Download:

<URL:http://www.codefluent.com/smourier/download/htmlagilitypack.zip>

- or -

SgmlReader 1.4
<URL:http://www.gotdotnet.com/Community/...mpleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BC>

If the file read is in XHTML format, you can use the classes contained in
the 'System.Xml' namespace for reading information from the file.
 

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

Back
Top