Results 1 to 4 of 4

Thread: Download JPG from site [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Question Download JPG from site [RESOLVED]

    Hi All,

    Given a url such as "http://www.example.com/image.jpg"

    I want to download that image to a directory on the local site.

    Thanks for any help

    Gary
    Last edited by tailz; Feb 8th, 2004 at 05:54 AM.

  2. #2

    Thread Starter
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Unhappy

    Bump

  3. #3
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    Haven't got VS.Net installed at home yet, so afraid I can't give you an example, but have a look at System.Net.WebClient

  4. #4

    Thread Starter
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306
    thanks! from what I can gather, its something like this:

    VB Code:
    1. Dim wc As New Net.WebClient()
    2.   Dim img As System.Drawing.Image = Image.FromStream(wc.OpenRead("http://www.example.com/image.jpg"))
    3.   img.Save("<FileName>")

    cheers

    GaZ

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