Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4439

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

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

      **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@mongodb.com Anna Henningsen
            Reporter:
            mwaller44@gmail.com Matt N/A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: