aspose file tools
The moose likes Beginning Java and the fly likes How to convert a String to java.sql.Clob? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "How to convert a String to java.sql.Clob?" Watch "How to convert a String to java.sql.Clob?" New topic
Author

How to convert a String to java.sql.Clob?

qionghua yang
Ranch Hand

Joined: Oct 31, 2000
Posts: 68
Hi there,
I would like to convert a String variable to the java.sql.Clob datatype:
My code looks like this:
String streamHTML = (out.toString());
Clob outHTML = (Clob)streamHTML;
And of course, this code doesn't work. Hope you can help me.
Thanks a lot.
qionghua

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to convert a String to java.sql.Clob?
 
Similar Threads
How to convert a String to java.sql.Clob?
How to Convert a java.sql.CLOB object to String
Clob to String (Using Hibernate)
String to CLOB conversion
XML convertion to java.sql.Clob