Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1817

BsonBinaryData Encode and Decode via C#

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: