473,320 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

downloading images...

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

Dec 19 '05 #1
4 924

"bongoo" <ne**@net.hr> schreef in bericht news:do*********@news1.xnet.hr...
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...

There is no easier one than this
http://msdn.microsoft.com/library/de...dfiletopic.asp

What do you mean with get a list of Urls on some web pages.
If it not is given than you cannot get it.

Or the Admin should have made a crazy IIS setting for that.

I hope this helps,

Cor
Dec 19 '05 #2
"bongoo" <ne**@net.hr> schrieb:
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>)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 19 '05 #3

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uF**************@TK2MSFTNGP10.phx.gbl...
"bongoo" <ne**@net.hr> schrieb:
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>)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

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?
Dec 19 '05 #4
"bongoo" <ne**@net.hr> schrieb:
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/UserSamples/Details.aspx?SampleGuid=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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Marc | last post by:
Hello, I have a page with lots of thumbnails of photos. I want the user to be able to dload a big version of the photo (also present on the server) by either 1) clicking on it (left...
2
by: Dave | last post by:
Dear Sirs, Is there a way to get the width and height of an image without downloading the image, or with just downloading a minimal portion of the image? For instance, I have a list of 10,000...
23
by: Doug van Vianen | last post by:
Hi, Is there some way in JavaScript to stop the downloading of pictures from a web page? Thank you. Doug van Vianen
4
by: aldonnelley | last post by:
Hi there: a bit of a left-field question, I think. I'm writing a program that analyses image files downloaded with a basic crawler, and it's slow, mainly because I only want to analyse files...
3
by: JP SIngh | last post by:
Can someone please help me with a file download query. I have the following code which works fine. The only change I want to make is in the line objStream.loadfromfile...
3
by: xeroxero | last post by:
I would like to prevent people from downloading a .zip from a ASP.NET 2.0 web site, but still allow people to touch a .aspx page in the same directory. I also want to set things so if a user clicks...
1
by: Hans Olav Hygen | last post by:
On 23. of October last year a the follwing was posted to this group: There were two advices (use urllib2 and "wb"). I tried to build this script on this basis: import win32api import...
5
by: OBAFGKM_RNS | last post by:
I have a javascript timer on my page that counts to 10. Every half second it alternates images on my buttons from a lighter image to a darker image, giving the appearance of the buttons blinking....
4
by: surja | last post by:
Hi, I have written a code to download images from a server end desktop, but while running the code ,WTK is showing a runtime error " Create image from Byte array Uncaught exception...
6
by: dysfunct | last post by:
Question: If I have a lot of <imgtags on a site, all linking from all sorts of domains, is there a way to check to see which ones have finished downloading and which ones haven't? For example let's...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.