Click to See Complete Forum and Search --> : How to download images from internet?


windysky
February 21st, 2006, 09:45 PM
Hi.

I am wondering how I can download and save internet images onto my hard disk from a windows application.

Thank you very much in advance.

windysky

HanneSThEGreaT
February 22nd, 2006, 12:19 AM
Hello! :wave:
This may be what you need

http://www.codeguru.com/forum/showpost.php?p=978343&postcount=4

gigemboy
February 23rd, 2006, 08:01 AM
Below is a quick way to do it, replace "textbox1.text" with the url to the image...

Dim MyBitmap As Bitmap = New Bitmap(New System.Drawing.Bitmap(New IO.MemoryStream(New System.Net.WebClient().DownloadData(TextBox1.Text))))
MyBitmap.Save("c:\test.jpg", Imaging.ImageFormat.Jpeg)

See the full post here: http://www.vbforums.com/showthread.php?t=387841

windysky
February 23rd, 2006, 08:42 AM
Thanks a lot gigemboy and HanneSThEGreaT.

That really helped me a lot.

Best,

windysky