Skip to content

Instantly share code, notes, and snippets.

View shekharsingh1987's full-sized avatar

Shekhar Singh shekharsingh1987

View GitHub Profile
@shekharsingh1987
shekharsingh1987 / storeImgInMongoWithMongoose.js
Created January 22, 2018 07:27 — 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