File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem in ServletOutputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in ServletOutputStream" Watch "Problem in ServletOutputStream" New topic

Problem in ServletOutputStream

naga eswar
Ranch Hand

Joined: Jan 25, 2012
Posts: 122
Hi all,

I am facing problem while writing byte data into ServletOutputStream.
The senerio is we are generating a PDF file by using FOP as below,

_strXslData is String which contians XSL program
_strXmlData is String which contains XML code as below

Later we are adding images to pdf with below code

naga eswar
Ranch Hand

Joined: Jan 25, 2012
Posts: 122
Later the mergedPdfsb(the genearated PDF), we are setting in DVO oNonHTMLDVO.setPdf();

Now in the below code we are facing the problem....

So at the outStream.write(readBytes); line while writing the bytes into ServletOutputStream, we are getting the exception OutputStream encountered error during write

Can any body help us please.
I agree. Here's the link:
subject: Problem in ServletOutputStream
It's not a secret anymore!