Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Download

 
rose hegde
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
mavedrive;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic