I wanted to read the db-InputStream directly into the PdfReader
without reading it the a byte Array or writing it to a file.
The PdfReader should read the InputStream partially.
So I can avoid having the complete document in memory and having unnecessary io.

But it seems that I have to choose one of both ...

On Thu, Oct 2, 2008 at 6:04 PM, Whitney, Adam <[EMAIL PROTECTED]> wrote:
> Try reading the part of the db inputstream that you're interested in
> into a byte[] (or ByteArrayOutputStream) then creating a reader from the
> byte[] - or the ByteArrayOutputStream.toByteArray()

>>But I want to read the db inputstream partially without writing the db
>>stream to a file first:
>>InputStream in = blob.getInputStream();
>>reader = new PdfReader(in);

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to