Joed Cueto,

Joed Cueto wrote
> I have an application that convert an inputSteam to pdf. Below is the
> content of the method that converts input stream to pdf. However, the
> application suddenly stopped on line "*RandomAccessFileOrArray ra = new
> RandomAccessFileOrArray(inputStream);" *without throwing any error or
> exception which is kind of weird. Is it a known bug, can you give some
> solution for this?? Thank you.. Badly needed. Please help

The RandomAccessFileOrArray constructor you use attempts to fully read the
stream in question into a byte[] until the stream signals its end. Then the
constructor initialize its instance with this byte[] and returns only
thereafter. Thus, this constructor is not suited for all kinds of
InputStreams, only for streams with a clear cut end and fast access.

What kind of InputStream do you use?

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Application-stopped-unexpectedly-tp4658575p4658576.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to