aspose file tools*
The moose likes JDBC and the fly likes Transform Blob Object to Xml data 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 "Transform Blob Object to Xml data" Watch "Transform Blob Object to Xml data" New topic
Author

Transform Blob Object to Xml data

Ganiyu Shefiu
Greenhorn

Joined: Dec 17, 2005
Posts: 9
Hi all,

I have Blob object retrieved from database (through jdbc) and will like to store the Blob object as part of data in xml file. Is this possible? if yes how can I achieve it? Please I need your response.

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

I'll move this thread to our JDBC forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Why XML? XML is character-based, and as such not a good fit for binary data. If you're nonetheless set on doing it, some binary-->text conversion would be involved, maybe base64-encoding (the Apache Commons Codec library can do that).
 
 
subject: Transform Blob Object to Xml data
 
Similar Threads
Convert XML data stored in a BLOB column in database back to XML format
XML and BLOBs
Problems with file upload
How to convert an object into BLOB
Inserting BLOB's in database