aspose file tools
The moose likes JDBC and the fly likes Convert XML data stored in a BLOB column in database back to XML format Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Convert XML data stored in a BLOB column in database back to XML format " Watch "Convert XML data stored in a BLOB column in database back to XML format " New topic
Author

Convert XML data stored in a BLOB column in database back to XML format

Ramya Teja
Greenhorn

Joined: Jul 26, 2011
Posts: 1
Hi,

XML data is being stored in an BLOB column in database.
I want to convert the BLOB data back to XML data.
Please tell me how to do this using JDBC code.

Thanks
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26138
    
  66

XML is character data and should be stored in a CLOB. BLOBs are for binary data and it doesn't make sense for XML.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Convert XML data stored in a BLOB column in database back to XML format
 
Similar Threads
How to convert the BLOB into String
BLOB conversion
How to upload a byte array into BLOB column?
Converting Blob to word
Parsing BLOB datatype