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).
is there any software for converting images into ASCII characters & ASCII characters into image
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35438
9
posted
0
The Apache Commons Codec library implements base-64 encoding/decoding. That lets you convert between the byte[] of the image and an ASCII representation.