[COMPASS-4439] Binary data is exported as base64 but not converted back on import Created: 06/Oct/20  Updated: 15/Oct/20  Resolved: 15/Oct/20

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.22.1
Fix Version/s: 1.23.0

Type: Bug Priority: Major - P3
Reporter: Matt N/A Assignee: Anna Henningsen
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 64 Pro


Attachments: File AfterImport.json     File BeforeExport.json     File ExportTest.json    
Issue Links:
Duplicate
duplicates COMPASS-4426 JSON export does not represent binary... Closed
Documentation Changes: Not Needed
Sprint: Iteration Orange

 Description   

**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.



 Comments   
Comment by Anna Henningsen [ 15/Oct/20 ]

This has been addressed as part of another issue, and will be fixed in Compass 1.23.0.

Generated at Wed Feb 07 22:36:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.