I have a jersey web service. I am trying to download a file on my hard disk through my localhost Tomcat server.
window.open("D:\\mario.zip");
This line doesn't work due to security reason. My 2nd try is creating a folder in the project which can be accessible like localhost/myfolder then I put a file there which can be accessed through http. Now I copy files from a specific folder to "myfolder" so that they can be downloaded.
The problem is: although the files exist in my hard drive, they cannot be accessible through http. Only after I refresh the project in Eclipse. The files can be accessible through http.
Is there any trigger for the server to update its file list?