Forums Register Login

PDF Download Servlet Problem

+Pie Number of slices to send: Send
Hi guys,

I'm having issues creating a file download servlet to download pdf files. I can successfully download text files using this code. For some reason however I cannot download a pdf using the same code. On execution, the browser will present me with a dialogue box asking me to open, save or cancel. If i open or save and open later I get an error message saying that the pdf file is corrupt or damaged and won't open properly. I have tried opening the original pdf on the server and there are no problems there. I have absolutely no idea why this is happening. Can someone point me in the right direction please.



Thank You
+Pie Number of slices to send: Send
Start by reading ReadDoesntDoWhatYouThinkItDoes.
What's brown and sticky? ... a stick. Or a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2101 times.
Similar Threads
making a download servlet to service download managers
How to implement file downloading functionality ?
How to display pdf file in broswer
Delete file when the file downloaded.
Unable to open PDF file from servlet.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:03:00.