[CSHARP-1817] BsonBinaryData Encode and Decode via C# Created: 01/Nov/16  Updated: 05/Apr/19  Resolved: 02/Nov/16

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Hu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Would you kindly tell me how to encode and decode BsonBinaryData?
I use a GUI tool and save "ABSG" to mongodb as BsonBinaryData.
I find the hex date in mongodb is 0x001486.

How can I convert 0x001486 (3 Bytes) to "ABSG"
And how to Create a BsonBinaryData with the value "ABSG"?

(db.getCollection("place2").where("bindata").eq(BinData(2, "ABSG")))

Thank you.



 Comments   
Comment by Hu [ 01/Nov/16 ]

Please ignore this issue.
I find the base64 reference.
Thank you.

Generated at Wed Feb 07 21:40:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.