File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes How to insert CLOB object into DB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to insert CLOB object into DB?" Watch "How to insert CLOB object into DB?" New topic

How to insert CLOB object into DB?

Gurumurthy Ramamurthy
Ranch Hand

Joined: Feb 13, 2003
Posts: 272

I have a huge string which I want to insert into DB as CLOB object using setClob.

I am struggling to creating a java.sql.Clob object with this huge string.

Can anyone help me?

Joe Nguyen
Ranch Hand

Joined: Apr 20, 2001
Posts: 161
This oracle document would help you to get the job done (You may need to create userid/pwd to access the page).
I agree. Here's the link:
subject: How to insert CLOB object into DB?
Similar Threads
use of CLOB,help me.
Accessing Clob in CMP EJB
help: lock problem during Clob update
Java program to Convert java.lang.String to java.sql.CLOB Object
Converting a String to Clob for insert into DB