Not only that, if you use a stream it's read to a byte array. Use a file instead.
Paulo ----- Original Message ----- From: "Mark Storer" <msto...@autonomy.com> To: "Post all your questions about iText here" <itext-questions@lists.sourceforge.net> Sent: Monday, October 19, 2009 9:24 PM Subject: Re: [iText-questions] Help Give the JVM more memory when you create it: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html This has almost nothing to do with iText, and everything to do with Java. --Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::Disclaimer<Cardiff> DisCard; -----Original Message----- From: thulasi ram [mailto:pthulasi...@gmail.com] Sent: Monday, October 19, 2009 11:15 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Help Hi all, I'm using iText Tiff2pdf method for converting Tiff to image pdf. I'm getting "Outofmemory" error while converting large size (morethen 5MB) images in the line of ra = *new* RandomAccessFileOrArray(inStream);. Can any one help how to create pdf for large size Tiff images. Thanks, Ram ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php 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/