Binary data is exported as base64 but not converted back on import

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • 1.23.0
    • Affects Version/s: 1.22.1
    • Component/s: Compass
    • None
    • Environment:
      Windows 64 Pro
    • Iteration Orange
    • Not Needed
    • None

      **All the following is done using Compass. Blobs refenced below are small images stored in mongo from a PDF such as a logo.

      BeforeExport.json is the document copied from compass using the copy button when viewing. You can see that "Blobs.[0]" is Binary data.

      ExportTest.json is the document exported using compass's build in export from collection command. You can see "Blobs.[0]" is now base64 and the data is changed to reflect that.

      AfterImport.json is after i delete the document in mongo and import my ExportTest.json then copy from compass using the copy button. you can see the data type is back to binary but the actual data is still base64 making all deserialization of this back to an image fail.

        1. AfterImport.json
          27 kB
        2. BeforeExport.json
          19 kB
        3. ExportTest.json
          28 kB

            Assignee:
            Anna Henningsen
            Reporter:
            Matt N/A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: