boost serialization has an object wrapper for binary data - called (surprise) binary_object. On text based formats, it uses base64 encoding it's in the documentation and also there is a specific test which shows how to use it. And its extremely easy to use. Robert Ramey