I need to make a file format for my software. The data is basic key/value pairs and images. The options are:
1) One XML file that has CDATA tag with binary encoded image files or image files encoded in a RGBRGBRGB or RGBARGBARGBA format.
2) One XML file holding key/value pairs and links to image files. These image files would be packaged with the XML file in a ZIP or TAR
What do you think is the best approach? If either is ok, which one do you think is easier to implement? I am using wxwidgets and the wxImage class has a getData() function that returns an array in RGB format. Would writing this array to XML be easier than base 64 encoding a jpeg/png etc? I've never programatically handled a ZIP file but I know there is a helper class in wxwidgets for this kind of thing.
Any insight is appreciated.