This week's book giveaway is in the Game Development forum.
We're giving away four copies of Badass: Making Users Awesome and have Kathy Sierra on-line!
See this thread for details.
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
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