Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Time to load an Image

MAX

2007-06-11


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@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.