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() 

-----Original Message-----
From: Markus [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 02, 2008 2:22 AM
To: [email protected]
Subject: [iText-questions] PartialReader for InputStreams

Hi,

I'm reading large (many blobs up to 50MB) pdf-data from a db, which I
want to concatenate with PdfCopy.

This example shows a method how to read a pdf file partially:
http://www.1t3xt.info/examples/browse/?page=example&id=19

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);

RandomAccessFileOrArray doesn't help here:

public RandomAccessFileOrArray(InputStream is) throws IOException {
    this.arrayIn = InputStreamToArray(is); }

Is there such a solution?

Kind regards

Markus

------------------------------------------------------------------------
-
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


-------------------------------------------------------------------------
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