I have small images I want to store as a bin data item. The form is posted but I do not know what to do in the controller so that if I so this, the data is stored. I am using Sails.js and the form is passing data as "image" with the form having a file input type.
var image = new Images;
image.data = ????
image.save();