Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

String to Blob (PreparedStatement setBlob())

843854Oct 21 2001 — edited Jan 20 2015
Hi!!

I am trying to store an xml string (of type String) in a column of type Blob. Is anyone aware of the syntax or methods I would use in order to convert my string into a Blob before I store it in the db?

I'm using the setBlob method.

Thanks!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2008
Added on Oct 21 2001
15 comments
1,952 views