binary-to-text encoding, non-printing characters, protocol buffers, mongodb and bson binary-to-text encoding, non-printing characters, protocol buffers, mongodb and bson mongodb mongodb

binary-to-text encoding, non-printing characters, protocol buffers, mongodb and bson


  1. BSON safe, yes. The output of ASCII85 encoding is also valid utf-8 iirc.
  2. It's used to store chunks of binary data. Binary data is an officially supported type and you should be able to push binary values to BSON fields using the appropriate driver code, BSONObj in your case. Refer to your driver docs or the source code for details.