Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloading the PDF file from server

 
Ravi Saluru
Greenhorn
Posts: 11
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am just learning and implementing java at my work place, I tried to search on how to troubleshoot the issue but failed.

The scenario is that, on the website -> there is a download button.
When the user clicks on the download button, the file download pop-up should appear, and the user should have the option to save it in the pdf format.

The file on the server is in the form of an image, and also in the form of a pdf file.

Looking forward to your valuable suggestions.
 
Miku Ranjan
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What you want to send in response you can put accordingly you have to change the response content type and header and will get result too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic