By Date: <-- -->
By Thread: <-- -->

Storing document page by page in DB



Waq lala wrote:


Hi,

I want to creat a document without creating any PDF file.

Write everything to a ByteArrayOutputStream.

I also want to save the document in the database page by page e.g. suppose i have created 5 pages in a document and i want to save these pages seperatly in to the database.

Use the class com.lowagie.tools.plugins.Burst as inspiration to split the file in the ByteArrayOutputStream into separate pages. Write each page to another ByteArrayOutputStream. Save the byte[] obtained from the ByteArrayOutputStream to your database as a BLOB.

All this procedure will be done without creating any PDF file

You will be creating a PDF file, but without writing it to the file system. br, Bruno


------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions (at) lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions