I have binary data from a BSON object directly from an HTTP request. It includes some metadata and binary data I want to save to gridfs.
As for now, I need to save the binary data to a file first before uploading to MongoDB with gridfs-stream and afterward, I delete the fail. It would be much more convenient if I could pass the variable which holds the binary data and stream that directly without generating a temp file.
This is not possible right now, or am I missing something?
I have binary data from a BSON object directly from an HTTP request. It includes some metadata and binary data I want to save to gridfs. As for now, I need to save the binary data to a file first before uploading to MongoDB with gridfs-stream and afterward, I delete the fail. It would be much more convenient if I could pass the variable which holds the binary data and stream that directly without generating a temp file.
This is not possible right now, or am I missing something?