I have a websphere server app context on a Solaris machine. From a jsp I am calling a method in my code which converts a file into PDF and returns a BufferedInputStream ... using the BIS I am writing the file onto OutputStream in the jsp ... but I am not able to open the Pdf File ...its giving the error something like "document is damaged ".
The PDF file created is not a part of the context ...it is located in some other /tmp folder on the server separate from context folders... Please tell me a way to stream that file on the clients browser using a "jsp".
Sorry , if this is not supposed to be asked in this topic .
The below is the jsp code I am using. The pdffile is getting created perfectly in the server folder "/tmp". But while opening it in the browser I am getting the error "The file is damaged and couldnt be repaired".