aspose file tools*
The moose likes Java in General and the fly likes convert a db blob of xml into a jdom XML object 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 » Java » Java in General
Bookmark "convert a db blob of xml into a jdom XML object" Watch "convert a db blob of xml into a jdom XML object" New topic
Author

convert a db blob of xml into a jdom XML object

Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
i inherited a database that has full xml documents stored as blobs. The blobs look very similar to:


is there any easy way to convert this blob info into a jdom xml object? thanks in advance!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18115
    
    8

If you can convert it to something which JDOM can read from -- like an InputStream, for example -- then yes. And there is a way to get an InputStream from a PreparedStatement; check out the documentation for that class.
Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
TY sir. This helped alot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: convert a db blob of xml into a jdom XML object
 
Similar Threads
Parsing XML file
Turn this Java into Groovy!
Creation of GUI from xml file
Set the Text for the xml tag
Set the TextValue for the xml tag