I don't think CDATA is useful for inserting binary data into XML files,
because there is no way of escaping the terminating "]]>". I think the best
way to do it, if you want to do it inline, is to use Base64 encoding, and
then
you don't need CDATA.
Mike Kay