Hi,

We are using Lotus Notes version 8 along with iText version 2.1.0 (Was 
using 2.0.8 and was having same issue so upgraded to 2.1.0 to see if that 
fixed the problem).

On machines that run Lotus Notes Client and Designer, the code listed 
below works perfectly 100%..   Both attempts below work...

But, on machines that only run Lotus Notes Client, we get "The byte array 
is not a recognized imageformat".  I am very confused as to why and cannot 
find any reason for it.

Notes: The ImageResourceExtractor is compile along with the program and is 
based on code from Mikkel Heisterberg.

     PdfPTable inTable0101 = new PdfPTable(1);
     ImageResourceExtractor ire = new ImageResourceExtractor(session, db, 
"RBGlogo.jpg");
     byte[] imgbytes = ire.getImageBytes();
     cell = new PdfPCell(Image.getInstance(imgbytes));
     cell.setBorder(Rectangle.NO_BORDER);

I even tried it like this and I get the same problem..  It's always at the 
getInstance line...

     PdfPTable inTable0101 = new PdfPTable(1);
     ImageResourceExtractor ire = new ImageResourceExtractor(session, db, 
"RBGlogo.jpg");
     byte[] imgbytes = ire.getImageBytes();
     Image img1 = Image.getInstance(imgbytes);
     cell = new PdfPCell(img1);
     cell.setBorder(Rectangle.NO_BORDER);

Does anyone have a possible explanation that might resolve my issue.

Thanks in advance...

Bruno: My thoughts are with you in these trying times..  Keep yourself 
well to help support your family and most of all you son!!  Never forget 
that...

Glen Hamel
Lead Programmer / Technician
Auric Networks Canada
570 Orwell Street, Unit #1 & 2
Mississauga, Ontario, L5A 3V7
Phone: 905-361-7621 x 204
Fax: 905-274-3912
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to