I would like to embed an image inside an xml. My idea is to use a CDATA node, but I'm not sure how to achieve this.
Thanks in advance.
I'm trying to embed an image inside an XML, that's what I've done till now:
imageFile.open(imageFilename, ios::in | ios::binary);
streamsize length = imageFile.tellg();
if (length != 0)
char *pRaw = new char[length];
TiXmlElement *imageElem = new TiXmlElement("IMG");
But it's only saved the fist four bits...Does anyone know what I'm doing wrong?
Log in to post a comment.