Jen Debroni wrote:
> "Does this point to some other machine? Or a local file on disk somewhere? "
> 
> This URL points to a photo hosted by our photo server - this is the only way
> to access these images unfortunately. However, do you think it would help to
> compress the image somehow before calling image.getInstance()? Caching does
> no good as there will very rarely be repetition in the images used :( ...

You have the photo hosted on a photo server and you complain about iText 
being slow??? The bottle neck isn't iText, but the very expensive 
operation fetching the image from that server using an InputStream in 
addition to the transmission time (connection speed?) and the IO on the 
disk.

Speed will increase if you get the bytes of the image first and then 
feed them to the Image object (because iText opens the stream more than 
once), but fetching the image from a local resource will be the fastest 
solution.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to