hahaha
yes i execute it and as i told u that i m able to store this Blob Object.
now i m still there where i was.......
I want to store the document object in database as i explain prevoisly plz
help me out from this
Blob dbObject = rs.getBLOB("OBJECTDATA");
pdfOutputStream = new ByteArrayOutputStream();
Document doc = new Document();
PdfWriter writer = writer.getInstance(doc, pdfOutputStream);
doc.open();
doc.add(new Phrase("Thgis ia kdjfalkdjflkajlkdj jadflkjaslkdjfk adlkfjas
ldjflkadflkjaslkdfj"));
doc.close();
OutputStream outStream = Object.getBinaryOutputStream();
pdfOutputStream.writeTo(outStream);
outStream.close();
Waq
From: bruno <[EMAIL PROTECTED]>
To: Waq lala
<[EMAIL PROTECTED]>,"'itext-questions@lists.sourceforge.net'"
<itext-questions@lists.sourceforge.net>
Subject: Re: [iText-questions] Storing document page by page in DB
Date: Mon, 15 May 2006 15:23:49 +0200
Please keep replying to the mailing list so that other subscribers can
answer too.
Waq lala wrote:
when I m using these line of code it stores in the database
PdfReader readFrom = new PdfReader("text.pdf");
merge1 = new PdfStamper(readFrom, pdfOutputStream);
merge1.close();
OK, if pdfOutputStream is of type ByteArrayOutputStream,
you have created a new PDF file in memory.
OutputStream outStream = Object.getBinaryOutputStream();
pdfOutputStream.writeTo(outStream);
outStream.close();
I don't understand this Object.getBinaryOutputStream method,
This is not java.lang.Object we are talking about!
Please use another name, because java.lang.* is imported by default
and you will get an error if you invoke the non-existent static method
getBinaryOutputStream on java.lang.Object.
but when i use this method to store the document object it stores err in
the blob colunm in database. and i want to use the document object.
Blob Object = ((OracleResultSet) rs).getBLOB("OBJECTDATA");
Aha, you gave an instance of Blob the name 'Object'.
It's a big surprise to me that you succeeded to compile this code.
br,
Bruno
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions