This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 19674
    
  18

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).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Transform Blob Object to Xml data