getting an image from a web site
Posted on 2002-05-06
I know the url and name of an image that sits on a web site. I would like click a button on a VB form to automatically go to the URL and get the image to place on a directory on my machine. Of course, I can always do this manually by opening IE, navigating the the web site, right-clicking on the image, and "Save Target As". But how can I automate this in VB?
1) Add a browser control to a Form?
2) Tell the browser control to open a certain url
3) ????? download the image ????? how??
The third step is where I need help.
Real working source code will get you the points.