Menu

embedding binary data chunks in XML file

Developer
2006-05-10
2013-05-20
  • Koen Tanghe

    Koen Tanghe - 2006-05-10

    Hi,
    I'm new to TinyXML, and I was wondering if it is possible to embed binary data into an XML file using TinyXML? What I'm thinking about is embedding a small picture or a small sound fragment in my XML file. Usually this is done with CDATA stuff. So, will TinyXML automatically convert the binary data into XML compatible ASCII using some CDATA construct?
    Or how can/should I do that?
    Koen

     
    • Dominik

      Dominik - 2006-05-13

      Hi Koen,

      I use a base64 encoding to embed binary data into a xml file. However afaik you have to encode the data on your own.

      Dominik

       
      • eninyo

        eninyo - 2007-10-18

        can you give an example please...

         

Log in to post a comment.