Here's a code snippet where I get java.lang.IllegalStateException:

byte[] rawData = pdf.getData().toByteArray();
resp.getOutputStream().write(rawData);
resp.getOutputStream().flush();

Please advice how to fix this. Thanks!

On Mar 11, 8:31 am, mobilekid <[email protected]> wrote:
> Hi there,
> I've created a servlet, which simply reads requests using Apache
> Commons FileUpload, and then if an image has been uploaded, it
> converts it into a .pdf file using the PDFJet OS library. My question
> is how do I feed back the client with the generated PDF? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to