Boost logo

Boost Users :

Subject: Re: [Boost-users] encoding data when serializing
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-03-09 11:08:31

The way to do this is to

a) make a custom codecvt facet for the i/o stream.
b) open an instance of the output/input stream with this codecvt facet
c) use this stream when creating save/loading archives
d) use as normal.

boost iostreams might provide another way to do this.

boost serialization has code in it for encoding/decoding
data as base64. This code would be used to implement
the codecvt facet as described above.

Robert Ramey

Sean Farrow wrote:
> Hi:
> Is there a way of telling boost serialization to encode everything to
> base64 when encoding to xml.
> We are using std::wstring primarily.
> Any help appreciated.
> Cheers
> Sean.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at