Anybody know how to programatically copy a picture from a web site to the hard drive?
~seaweed
Printable View
Anybody know how to programatically copy a picture from a web site to the hard drive?
~seaweed
You are going to have to request the HTML page, scan the file for an image tag, and request the image.
I not sure if this will work, but try it with the Internet Transfer Control's OpenURL method. I do know that you can retrieve Web pages and text files this way and you can use it with FTP files so I think it must be possible. There is info on this in the VB help under OpenURL Method.
I will play around with your suggestions. I am looking for a way to simulate:
1. Navigating to a web site
2. Right clicking on a picture from that site
3. Selecting "Save Picture As..."
4. Saving picture as a bitmap file on the desktop
I will already know the address of the site and the name of the picture file, so there doesn't have to be a visual interface.
Thanks again,
~seaweed