________________________________
> Date: Mon, 22 Feb 2010 15:14:55 +0100
> From: sebastian.fu...@googlemail.com
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Writing to ServletOutputStream
>
> Thanks for your reply!
>
> Is it possible that the ServletOutputStream "shaves" the upper bit from every
> byte?
>
> I have a method which returns a ByteArrayOutputStream containing the pdf data.
> If I delegate this OutputStream to a FileOutputStream everything is ok but if
> I use
>
> the ServletOutputStream there is no content in the pdf.
>
> If the ServletOutputStream is responsible for this do you have a idea how I
> can
> prevent it from doing this?
>
javadocs claim it is for binary data but maybe you are using wrong method or
manipulating bytes
as char or have subclassed, I dunno,
http://www.google.com/#hl=en&safe=off&q=site%3Asun.com+ServletOutputStream&aq=f&aqi=&oq=&fp=d95f0d161f018361
> Thank you in advance!
>
> Best regards.
>
>
> Sebastian Furth
>
>
>
> 2010/2/22 1T3XT info
>
> Sebastian Furth wrote:
>
>> Something happens during the request because it returns a pdf in the
>
>> dimension set in the code - but there is absolutely no content (blank).
>
>
>
> Sounds like the "blank page" problem described in the book (1st and 2nd
>
> edition). This happens if you "shave" the upper bit from every byte. The
>
> PDF structure is preserved, and as a result a viewer can show you all
>
> the pages of the PDF, the bookmarks, etc... But all binary data, for
>
> instance the page content stream, is made corrupt (of course: you've
>
> thrown away 1/8 of the information).
>
>
>
> If that's what's happening in your case, you have a configuration error
>
> somewhere.
>
>
>
> ------------------------------------------------------------------------------
>
> Download Intel® Parallel Studio Eval
>
> Try the new software tools for yourself. Speed compiling, find bugs
>
> proactively, and fine-tune applications for parallel performance.
>
> See why Intel Parallel Studio got high marks during beta.
>
> http://p.sf.net/sfu/intel-sw-dev
>
> _______________________________________________
>
> iText-questions mailing list
>
> iText-questions@lists.sourceforge.net
>
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
>
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
>
>
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/201469229/direct/01/
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/