This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 20080
    
  30

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 checked out Aspose?
 
subject: Transform Blob Object to Xml data
 
It's not a secret anymore!