Draft Dodger
01-25-2004, 07:48 PM
been trying to figure out something that should be relatively simple to do. Using VB (.Net), but this is a pretty basic program - if someone can show me how to do what I want to do in one of the C languages, I could probably muddle through the rest.
basically, I want to automate the process of saving an internet picture to my hard drive. I know how to open a picture from a path on my hard drive, but I can't make it work with an internet link...
for example:
pic1.image = Image.FromFile("path of the file")
if the path is a path to where the picture is on my hard drive (S:\Graphics), the program works fine. I want to change that to an internet path (http://www.google.com/images/logo.gif), but if I do so I get an error. I'm sure there's a relatively simple way to do this, but it's eluding me - and a search through some books and online stuff hasn't helped me. I'm assuming that the "FromFile" part of the code is wrong, but I can't find anything else that may be a suitable replacement.
thanks in advance if anyone's able to point me in the right direction...
basically, I want to automate the process of saving an internet picture to my hard drive. I know how to open a picture from a path on my hard drive, but I can't make it work with an internet link...
for example:
pic1.image = Image.FromFile("path of the file")
if the path is a path to where the picture is on my hard drive (S:\Graphics), the program works fine. I want to change that to an internet path (http://www.google.com/images/logo.gif), but if I do so I get an error. I'm sure there's a relatively simple way to do this, but it's eluding me - and a search through some books and online stuff hasn't helped me. I'm assuming that the "FromFile" part of the code is wrong, but I can't find anything else that may be a suitable replacement.
thanks in advance if anyone's able to point me in the right direction...