python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Multer GridFsStorage Dynamic Configuration for Multiple MongoDB Connections
So I'm using MongoDB Atlas, Mongoose, Multer and GridFsStorage to upload files to a single database on the cloud which works fine, but I want to be able to upload files to different databases, using d...
Nikitas IO
Votes: 0
Answers: 1
openDownloadStream based on metadata in mongodb gridfs
I have created GridFs bucket using metadata with page as field as below.
const bucket = new GridFSBucket(mydb, {
"DocumentImageFile",
});
fs.createReadStream(file)
...
Anonymous Creator
Votes: 0
Answers: 1
what is the best approach to retrieve images from MongoDB?
I have a web application that stores and retrieves images from MongoDB using GridFS. My issue is that when the user makes a request that prompts the server to retrieve images from the database, it tak...
Diego
Votes: 0
Answers: 1
When downloading a large file from GridFSBucket mongodb gets Sort exceeded memory limit error
I'm trying to download a large file (larger then 100 MB) from gridFs:
ObjectId objectId = new ObjectId(item.RawDataFileId);
file = gridFsBucket.DownloadAsBytes(objectId);
I get this error:
MongoDB....
Or Haim Sabag
Votes: 0
Answers: 2