How to insert image in databese?


#1

how insert image in databese ?


#2

Mongo supports any EJSON types for insert. Simply you could convert image into base64 string an save to DB (as string). Also you can search forums to find a lot of techics and ready to use packages for storing images (or files) with Metor/Mongo.


#3

You can check out http://mongodb-image.meteor.com with the source on github. There are certain limitations when storing images in mongodb, though. You can find them on the mongodb website.


#4

Thank’s my friend try on my first project in meteor js…