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]
This e-mail and any files transmitted with it are for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]