|yes, its not too hard, but using the browser to get it is the least efficient means (i.m.o).|
If your program is in possession of the .jpg at some point, then it should be able to capture it (ie: store it somewhere on the local system as a file). Then it can recover it from there.
I'm not clear if this vb program is another users client-side app, or a app running on your own machine (client). I am assuming the latter.
If the jpg has to be fetched, and if you know the name of the directory and the name of the jpg, I would highly recommend using wget.exe to get it from the server. netcat can also be "trained" to get it this way.
If you don't know the name of the directory where it's stored, then i guess you have to use the browser. The only way i know to use it is via sendkeys, but there's a better way that i haven't learned yet.