File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 19785
    
  20

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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transform Blob Object to Xml data