File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes File Download Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Download" Watch "File Download" New topic

File Download

rose hegde
Ranch Hand

Joined: Oct 22, 2003
Posts: 40
I have uploaded a file using java and jsp in mysql database.But i am unable to download it through jsp where in i should get a download window with save option.Please help
Maverick Lasa

Joined: Oct 18, 2003
Posts: 23
this is a bit of browser dependent. you can use the GET request to retrieve a resource such a zip file. your browser automatically detects this and would prompt you with a Save As... dialog. This is however depends on the format of the file you are downloading. For plain files like txt files, your browser might try to display it rather than prompting you with a dialog.
I agree. Here's the link:
subject: File Download
It's not a secret anymore!