This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The file I'm copying is stored in a database and I usually access it to display it on a web page using a servlet (delivers it through a buffered output stream). I'm trying to do something like this:
fso = new ActiveXObject("Scripting.FileSystemObject"); fso.CopyFile("http://serv:8080/app/getPic?PicID=46", "c:\\file.jpg");
The error I'm getting is "path not found" - I can only assume the fso can't access a URL to get a file.
Am I on the right track or am I barking up the wrong tree? Any ideas anyone??