Meteor Js , Store images to mongoDB <p>I want to store an image browsed by a file input to database. I am browing the image using redactor plugin using this code </p> <pre><code>$('.editor').redactor({ imageUpload:"/uploads" }); </code></pre> <p>Using this when i select or browse an image i am directly sending that image to server using meteor HTTP-methods </p> <pre><code>HTTP.methods({ '/uploads': function(data) { console.log(data) Meteor.call("uploadImage",data) return JSON.stringify({'Hello':"hello"}); } }); </code></pre> <p>Here when i am doing console.log data I am getting the 64bit binary code for the image. Now i want to save this data to the mongodb database.<br> I am using meteor-collection 2 for defining fields and their types. But i couldn't get which data type i have to use to store image to the mongo db.<br> I am trying to use mongodb gridfs to store the image. Tell me how can i store image in mongodb ? Thanx </p>