The Artima Developer Community
Sponsored Link

Java Answers Forum
How to convert a String into Clob in Java

2 replies on 1 page. Most recent reply: Nov 21, 2003 8:28 PM by Kishori Sharan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Eugene Wang

Posts: 1
Nickname: wang6624
Registered: Nov, 2003

How to convert a String into Clob in Java Posted: Nov 21, 2003 12:35 PM
Reply to this message Reply
Advertisement
Hi,

I need help on converting a String to a Clob before updating the DB in Java. It is easy to get Clob to String but I cannot find a way to convert it back. Thanks in advance.

Eugene


sumitprasadsingh

Posts: 1
Nickname: sumitps
Registered: Nov, 2003

Re: How to convert a String into Clob in Java Posted: Nov 21, 2003 3:46 PM
Reply to this message Reply
U cannot covert String to CLOB, but u have to convert to BLOB

Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: How to convert a String into Clob in Java Posted: Nov 21, 2003 8:28 PM
Reply to this message Reply
You will find all you want at this link:

http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/jdbc20/LOBSample/LOBSample.java.html

Flat View: This topic has 2 replies on 1 page
Topic: Lazy Events Previous Topic   Next Topic Topic: Mysql access denied problem.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use