File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes issue in converting string to CLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "issue in converting string to CLOB" Watch "issue in converting string to CLOB" New topic
Author

issue in converting string to CLOB

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Can anybody let me know the java code to convert the string to CLOB object using oracle 9i classes12.jar ???

I have written the code for the same which runs fine if i use oracle 10g classes12.jar but it fails when i use oracle 9i classes12.jar

It's very urgent

Any help will be highly appreciated
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why are you using the old driver? Are you stuck using JDK 1.2 or something?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
Paul Sturrock wrote:Why are you using the old driver? Are you stuck using JDK 1.2 or something?


actually i need to deploy my code and classes12.jar of oracle 9i is being used in the jboss server.

so my code should work with oracle 9i classes12.jar which actually is not happening right now.

Please help me in writing the code which convert a String object to CLOB using oracle 9i classes12.jar
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why classes12.jar though? That is an Oracle driver for JDK 1.2. The reason I ask is that this particular driver didn't have great support for binary data types, whereas the current version do.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Do you mean inserting a String into a CLOB field in the DB ?? or what do you mean ??

If that is the case, then just use the JDBC setString method on the CLOB.


Regards, Rene Larsen
Dropbox Invite
manvendra singh
Greenhorn

Joined: Feb 05, 2011
Posts: 3

Doesn't matter whether its a clob or varchar in database...
You can consider it as String in your java code.........
(provided you are not using updatable resultset)


happy Coding
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: issue in converting string to CLOB