Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert String into Clob in Java?

807569May 31 2006 — edited May 31 2006
Hi all,

from a form i have a

String body = request.getParameter("body_name");

i want to insert the string body to a clob field in oracle.

string is from a textarea where the user enter html contents and i want to storeit as a clob in the database.

can anybody help ?

I have done with setCharaceteStream(), but it will take only 4000 characters. which suppose to take upto 4GB limit.

So I want to set it as stmt.setClob(" some form by using String")

Pls. help me if you can?
thanks in advance
Srikanth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2006
Added on May 31 2006
1 comment
363 views