How do I store files on mongodb? I am using the MEAN stack

16 views
Skip to first unread message

smlew...@gmail.com

unread,
Nov 21, 2016, 3:22:31 PM11/21/16
to mongodb-user
Dear Group,


I would like to know how to store files into mongo... I am using angular on the front end... How do I set up my post and get methods to include the createStream and writeStream?  
 Thank you...

Wan Bachtiar

unread,
Nov 24, 2016, 8:12:01 PM11/24/16
to mongodb-user

I would like to know how to store files into mongo… I am using angular on the front end… How do I set up my post and get methods to include the createStream and writeStream?

Hi,

Depending on your application use case, you may utilise MongoDB GridFS to store and retrieve files.

See also:

To learn more on MEAN stack, I would also suggest to check out a free online course M101x: Introduction to MongoDB using the MEAN stack.

Regards,

Wan

Reply all
Reply to author
Forward
0 new messages