Hi,
The option 2 is what i am looking at. The API for generating the PDF writes to the 
servlet outputstream directly. So for the time being forget PDF, say, I need to 
capture the output of any servlet, say a html content, and store that to a db or file, 
how do I do that?
Thanks for the response.
Rajesh

-----Original Message-----
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:40 PM
To: Struts Users Mailing List
Subject: RE: Storing the Output of a Servlet to Database


Hi
There are various ways u can do this.

approach 1:
        simple and best approach.. create a PDF file in the weblocaiton and compose 
the path and store it. when ever u want u can make use of it.

appraoch 2
        Create a CLob column once the PDF is generated push to a DA method before 
giving it to Servlet.

apprach 3
        Create a BFIle useit.

-----Original Message-----
From: Rajesh P [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 5:28 PM
To: Struts Users Mailing List
Subject: Storing the Output of a Servlet to Database


Hello Everyone,
I have a requirement wherein a Servlet class is used to generate a PDF document. This 
output should be stored into a database table for future retrieval. Can somebody tell 
me how this output of the Servlet can be captured and stored into a database table? Or 
rather, how to capture the response outputstream, convert it to bytes so that it can 
be persisted in the datbase. Please note that we are not allowed to write to a File 
and then upload it.  
Thanks, 
Rajesh 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to