aspose file tools
The moose likes JDBC and Relational Databases 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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 19959
    
  25

I'll move this thread to our JDBC forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 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).
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Transform Blob Object to Xml data