7 replies
by okujava
if you use jsp/servlets, then call:
response.addHeader("Content-Disposition", "attachment; filename=\"foo.txt\"");
OutputStream os = response.getOutputStream();
the client should see a download window and
all you write in os, should be passedto the client.
hope it helps... :)
by daz'n'ash
by dklippert
by daz'n'ash
by wask
The easiest way would be to provide a hyperlink to the pdf file, in case the client wishes to view the file online. But instead if the client wishes to download the file for viewing it offline, then just "zip" the pdf file and provide a link to the .zip file. however, If the browser in use does not have a pdf plugin, it would automatically show the user a download window.
I hope this helps.
by daz'n'ash
by daz'n'ash
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending