id summary reporter owner description type status milestone component version severity resolution keywords cc 5624 base64 encode/decode nen777w@… Robert Ramey "{{{ //typedefs typedef boost::archive::iterators::istream_iterator boost_istream_iterator; typedef boost::archive::iterators::ostream_iterator boost_ostream_iterator; typedef boost::archive::iterators::insert_linebreaks< boost::archive::iterators::base64_from_binary< boost::archive::iterators::transform_width >, 76 > bin_to_base64; typedef boost::archive::iterators::transform_width< boost::archive::iterators::binary_from_base64< boost::archive::iterators::remove_whitespace >, 8, 6 > base64_to_bin; void test() { { std::ifstream ifs(""test.a"", std::ios_base::in|std::ios_base::binary); std::ofstream ofs(""test.b"", std::ios_base::out|std::ios_base::binary); std::copy( bin_to_base64(boost_istream_iterator(ifs >> std::noskipws)), bin_to_base64(boost_istream_iterator()), boost_ostream_iterator(ofs) ); } { std::ifstream ifs(""test.b"", std::ios_base::in|std::ios_base::binary); std::ofstream ofs(""test.c"", std::ios_base::out|std::ios_base::binary); std::copy( base64_to_bin(boost_istream_iterator(ifs >> std::noskipws)), base64_to_bin(boost_istream_iterator()), boost_ostream_iterator(ofs) ); } } }}} File test.a contain only one byte 0x50 'P'. Exception happen during decoding, the same behaviour repeat for a any ZIP file. For example. Instead file test.a use any valid zip file." Bugs closed To Be Determined serialization Boost 1.45.0 Problem fixed