I have an image (size 202 KB) which I would like to load!

File file = new File("logo.jpg");
FileInputStream is = new FileInputStream(file);
BufferedImage bi = ImageIO.read(is);
com.lowagie.text.Image img = com.lowagie.text.Image.getInstance(bi, null);

load time: more than 1.5 sec.

Why does that take so long? How can I reduce this?

Thanks.


-------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to