Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML String to CLOB

 
Ram Krish
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can somebody tell me how to go about converting a xml string to clob ? I need to save the same in oracle db.

thanks
ram
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram,
You can write the String to a CharacterStream and use that setter method on the Statement.
 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i remember right you can use it as simple String assignmenzt, as long as its not larger than 32,768 Chars.

From then on you have to use the stream methods.

...but i may be wrong ( as so often, sigh )

J.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic