This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "images" Watch "images" New topic
Author

images

ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
can we store images in XML?

if yes then how to parse the images
Laxmikant Ruikar
Greenhorn

Joined: Nov 29, 2005
Posts: 23
Have a look on this site http://www.loc.gov/standards/mix/
it might helpful for you..
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
can you tell how to parse the images stored in XML file
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
You'd need to encode the image into characters, maybe using something like base64. Then the image becomes regular ASCII that can be stuffed into an XML document. You couldn't do anything else with the image until the encoding has been reversed, though. Before doing this I'd consider at length if there isn't a better way to store the image (maybe as a file, with the file path in the XML).

Have a look on this site http://www.loc.gov/standards/mix/

That looks like it's just about image metadata, not actual image data - am I missing something?


Ping & DNS - my free Android networking tools app
ramesh kancherla
Ranch Hand

Joined: May 01, 2008
Posts: 124
is there any software for converting images into ASCII characters & ASCII characters into image
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42371
    
  64
The Apache Commons Codec library implements base-64 encoding/decoding. That lets you convert between the byte[] of the image and an ASCII representation.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: images