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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
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://aspose.com/file-tools
 
subject: How to convert a String to java.sql.Clob?