CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    8

    How to download images from internet?

    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

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: How to download images from internet?

    Last edited by HanneSThEGreaT; February 22nd, 2006 at 01:21 AM.

  3. #3
    Join Date
    Jan 2006
    Posts
    293

    Re: How to download images from internet?

    Below is a quick way to do it, replace "textbox1.text" with the url to the image...
    Code:
    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

  4. #4
    Join Date
    Jan 2006
    Posts
    8

    Re: How to download images from internet?

    Thanks a lot gigemboy and HanneSThEGreaT.

    That really helped me a lot.

    Best,

    windysky

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured