aspose file tools*
The moose likes JSP and the fly likes Downloading the PDF file from server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Downloading the PDF file from server" Watch "Downloading the PDF file from server" New topic
Author

Downloading the PDF file from server

Ravi Saluru
Greenhorn

Joined: Nov 01, 2011
Posts: 10

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.


Thanks and Regards,
Ravi
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help you:
http://www.mkyong.com/java/how-to-download-file-from-website-java-jsp/


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Downloading the PDF file from server