This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
we have a web application deployed on Oracle Application server (10.1.3.5.0). We deployed the same
app on WebLogic server (10.3.6.0) and now we have problem with displaying PDF on web page. Here is our code
WebLogic reports "File is corrupted and cannot be repaired. Local\EWH&4u}ik5v".
We have latest Acrobat Reader. Tried a few IE (have version 10) reccomendations -
increase tmp size, delete temp files on leaving IE. But nothing worked.
Do you have any experience with WebLogic ? Could it something be wrong in above code ?
Joined: Oct 22, 2002
I found it myself. The JSP must not contain any HTML code:
You should never use JSPs to stream binary content; that's what servlets are for. JSPs are for creating character output, using them for anything else is a bug waiting to happen. For example, I'm fairly certain that the PDF you downloaded does not have the same number of bytes as the original one.