I cant search... I know it's been asked 1000 ^ n+32 times, but :D one more time
just give me a clue and I should be able to figure out the rest. I want to download a jpg file or a html file from a webpage
Printable View
I cant search... I know it's been asked 1000 ^ n+32 times, but :D one more time
just give me a clue and I should be able to figure out the rest. I want to download a jpg file or a html file from a webpage
for your html....
for images etc...VB Code:
Dim wc As New Net.WebClient() Dim sReader As New IO.StreamReader(wc.OpenRead("http://www.vbforums.com/showthread.php?s=&threadid=263956")) MessageBox.Show(sReader.ReadToEnd) wc.Dispose() sReader.Close() '//////////////////////////////// '/// Or ..... Dim wc As New Net.WebClient() wc.DownloadFile("http://www.vbforums.com/", "C:\somefile.htm") '/// download and save to HD.
VB Code:
Dim wc As New Net.WebClient() Dim img As Image = Image.FromStream(wc.OpenRead("http://www.vbforums.com/images/smilies/smile.gif")) PictureBox1.Image = img
ok thank you:D
I just downloaded 800 images... :D
it was the graduation pics of everyone at our school. dont ask how I got the url to all of them though ;)