BsonBinaryData Encode and Decode via C#

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: