On Thursday 14 June 2007, Javier Martinez wrote:
> In my project, we use Jasperreports to design reports, and it uses
> iText-1.3.1.jar library. If I make this with this iText Library version, I
> can insert the image properly (the only problem is that the image is align
> to the text). If I use the latest version of the library the string that I
> obained has a lot of strange characters.
The probable reason for this is that the internal structure has changed 
between the two releases. The "byte[] write()" method has been deprecated 
(and may not always provide correct results). It has been replaced by 
the "write(OutputStream)" method and using that should solve your problem.

Greetings,
Mark
-- 
Sometimes I wonder if I'm in my right mind.  Then it passes off and I'm
as intelligent as ever.
                -- Samuel Beckett, "Endgame"

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgpHoZ9ng9kVt.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to