Quoting Anis h <[EMAIL PROTECTED]>:
> ServletOutputStream servletOutputStream = response.getOutputStream();
> response.setContentType("application/pdf");
> response.setContentLength(byteArrayOutputStream.size());
> 

You forget ba.writeTo(servletOutputStream);

> servletOutputStream.flush();
> I really don't know if something wrong above..


> Did you say you had 
> response.setContentType(" application/pdf"); instead
> of 
> response.setContentType("application/pdf");

I didn't have " application/pdf" hardcoded.
I extracted the value of the content-type from a MIME-message
and I set this as the content-type. That was were it went wrong.

Bruno


-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to