Not able to download a PDF from load balancer site
Joined: Dec 10, 2009
We have a web application deployed in Tomcat 4.1. When we try to download a PDF from the load balancer site, we are getting the error in Adobe reader 9 as "There was an error opening this document. The file cannot be found".
This problem occurs only in Load balancer sites. When we try to download the PDF from direct link, it works.
And this problem occurs only in Adobe Reader 9. If we use the Adobe Reader 8, 7 with load balancer links, the PDF gets displayed.
The combination, Load balancer site + Adobe Reader 9 is the only problem.
Not sure the problem is with some load balancer settings related to cache or Reader 9 plugins.
Please let me know if somebody knows the solution. Is this problem can be resolved by setting some specific Headers in response object?
Note : option 'Display PDF in browser' in Internet explorer is disabled.
Welcome to Javaranch k kumarp
If the "Display PDF in browser" is disabled then is the PDF file downloaded to your machine?
Anyways this does not seem to be a servlet question, moving to General Computing.
If the option 'Display PDF in browser' is disabled i.e, if we expect to display the PDF in Adobe Reader 9 then it doesn't work.
If the option 'Display PDF in browser' is enabled, the file gets displayed well.