Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inserting utf8 encoded xml into into oracle clob or blob

Status
Not open for further replies.

tekkerguy

Programmer
Nov 16, 2005
196
US
I need to insert an xml file into oracle. when I tried this with a clob, the OracleLob.write method's byte parameter needs even number of bytes. This works with you use Encoding.Unicode as the byte[] encoding, but I need to use utf8, because when I reencode to utf8 on the other receiving side, it takes forever.

How do I write to a clob or a blob using utf8 encoding, so I don't need to reencode when I retrieve the data later?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top