|
-
Feb 5th, 2004, 10:22 AM
#1
Thread Starter
Hyperactive Member
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.
-
Feb 8th, 2004, 05:28 AM
#2
Thread Starter
Hyperactive Member
-
Feb 8th, 2004, 05:44 AM
#3
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
-
Feb 8th, 2004, 05:54 AM
#4
Thread Starter
Hyperactive Member
thanks! from what I can gather, its something like this:
VB Code:
Dim wc As New Net.WebClient()
Dim img As System.Drawing.Image = Image.FromStream(wc.OpenRead("http://www.example.com/image.jpg"))
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|