-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
From http://sourceforge.net/p/poco/bugs/630/:
It looks like size of binary data is not written during serialization in MongoDB/Binary.h
Instead of
inline void BSONWriter::write<Binary::Ptr>(Binary::Ptr& from)
{
_writer << from->subtype();
_writer.writeRaw((char*) from->buffer().begin(), from->buffer().size());
}
should be something like this?
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());
}
Reactions are currently unavailable