Fix #750 missing binary size

This commit is contained in:
fbraem 2015-03-21 21:53:51 +01:00
parent 84842e9eea
commit 65c704ea90

View File

@ -117,6 +117,7 @@ inline void BSONReader::read<Binary::Ptr>(Binary::Ptr& to)
template<>
inline void BSONWriter::write<Binary::Ptr>(Binary::Ptr& from)
{
_writer << (Poco::Int32) from->buffer().size();
_writer << from->subtype();
_writer.writeRaw((char*) from->buffer().begin(), from->buffer().size());
}