Hi,

I am new with Itext, and I am coming up with a small problem.
Have you already heard of it ?



Instead of writing the PDF to the disk, I am writing it in a buffer (a
byte array, using ByteArrayOutputStream), to be able to write this
buffer in a mysql database (BLOB type).


Experiment 1:
1. Generating the PDF document
2.  Using FileOutputStream to write it to the disk => PDF readable using
AcrobatReader

Experiment 2:
1. Generating the PDF document
2. Using ByteArrayOutputStream to write it to a byte array
3. Writing this byte array to a pdf file => PDF readable using
AcrobatReader
4. Writing this byte array to a binary BLOB field in a mysql database.
Reading the same byte array from the database (this new byte array
having exactly the same size of the original one) => Acrobat reader show
a BLANK page.

Strangely enough, writing the byte array to the database in a BLOB
field, transforms the bytes in a odd way (comparing the 2 pdf files with
emacs, they show tiny differences).

Have your ever experienced such problem and find any solution to it?
Thanks,
Elie





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to