Hi Jesse Thanks a lot for th info. Are there any classes available in xerces to convert an image to binary data?
Regards Praveen On Jan 18, 2008 5:21 AM, Jesse Pelton <[EMAIL PROTECTED]> wrote: > You'll need to encode the binary data in some text representation. A > base64 encoding is typically used for this sort of thing, and as it > happens, Xerces provides a Base64 class (see > http://xerces.apache.org/xerces-c/apiDocs/classBase64.html). When > creating a document, you'll need to encode the data as text, create a > text node using that text, and append the text node to some element in > your document (assuming you're using the DOM). When reading, you'll > fetch the text and decode it to binary form before using it. > > I don't have any code. > > -----Original Message----- > From: Praveen Boinee [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 5:31 AM > To: [email protected] > Subject: storing image data in xml > > Dear Developers > > I would like to know if its possible to write image data in XML format > using xerces in C++?. The image has to be loaded dynamically based on > the > data stored in xml. we cannot store the image location as a xml > attribute. > > any C++ code sample would be very much appreciated > > Many Thanks >
