Skip to content

Commit 65c704e

Browse files
committed
Fix pocoproject#750 missing binary size
1 parent 84842e9 commit 65c704e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

MongoDB/include/Poco/MongoDB/Binary.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ inline void BSONReader::read<Binary::Ptr>(Binary::Ptr& to)
117117
template<>
118118
inline void BSONWriter::write<Binary::Ptr>(Binary::Ptr& from)
119119
{
120+
_writer << (Poco::Int32) from->buffer().size();
120121
_writer << from->subtype();
121122
_writer.writeRaw((char*) from->buffer().begin(), from->buffer().size());
122123
}

0 commit comments

Comments
 (0)