What’s the syntax for adding binary array to a BSON with C++ driver? I’m sure it’s somewhere in the docs, but can’t find it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From http://groups.google.com/group/mongodb-user/browse_thread/thread/b836032ad24dc00d
To create a BSONObj in C++ that stores binary data, you can do something like:
Documentation here: http://api.mongodb.org/cplusplus/current/classmongo_1_1_b_s_o_n_obj_builder.html#a6882df3d0e4ca68446684769bc9e4d18