A hack of node-growing-file by Felix Geisendörfer to stream file from mongodb instead of the local filesystem
npm install growing-mongofile
var file = GrowingFile.open(db, 'my-growing-file.dat' [, options [, callback]]); file.pipe(<some writeable stream>);
The file being read must exist in mongodb. Thus, when saving it, you must close it and re-open it. For this, you can simply use :
GrowingFile.createGridStore(db, filename, metadata, callback)
Written by Tugdual de Kerviler, licensed under the MIT license.