I need to edit some nasty binary files in proprietary format, so I wrote a converter between this binary format and XML. Now I can edit interesting bits, but unfortunately this format embeds a lot of raw binary data - I need to keep it where it is (or otherwise reinsert on conversion back), but it's not meaningfully editable anyway so I would like to see it as little as possible.
What's the simplest way to make such blobs take minimum amount of space, and while minimizing chance of such blob getting accidentally damaged? I'm thinking gzip+base64 and putting checksum and size in blob tag's attributes - or is there a more sensible way?