fixed GH #2655: MongoDB Binary element to string - bug

This commit is contained in:
Günter Obiltschnig 2019-06-22 18:31:57 +02:00
parent 5ba6ec6885
commit 093568ecc7

View File

@ -69,6 +69,7 @@ std::string Binary::toString(int indent) const
Base64Encoder encoder(oss);
MemoryInputStream mis((const char*) _buffer.begin(), _buffer.size());
StreamCopier::copyStream(mis, encoder);
encoder.close();
return oss.str();
}