This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 29220
    
135

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://aspose.com/file-tools
 
subject: Convert XML data stored in a BLOB column in database back to XML format
 
Similar Threads
How to upload a byte array into BLOB column?
Converting Blob to word
Parsing BLOB datatype
How to convert the BLOB into String
BLOB conversion