So I am trying to upload data larger than 16mb on a local database on an Azure Cosmos Emulator from a python app. The upload is perfect it creates the chunks along with the items. The problem I have though is on the download.
path = "eye1.zip"
fs = gridfs.GridFS(db)
with open(path, 'rb') as file1:
grid = fs.put(file1)
eye = fs.get(grid)
print(eye.read())
The error I get all the time atthe .read() command is pymongo.errors.ProtocolError: Message length (12753158) is larger than server max message size (4194304)
. So what is the correct procedure to download the data that I have just uploaded to my device? And why is this error appearing since gridfs suppose to let you stream more than 16mb of data ?