Skip to content

Instantly share code, notes, and snippets.

@laterbreh
laterbreh / storeImgInMongoWithMongoose.js
Created September 28, 2015 04:02 — forked from aheckmann/storeImgInMongoWithMongoose.js
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path