Skip to content

Instantly share code, notes, and snippets.

View sijpkes's full-sized avatar

Paul Sijpkes sijpkes

  • University of Newcastle
  • Newcastle, NSW, Australia
View GitHub Profile
@aheckmann
aheckmann / storeImgInMongoWithMongoose.js
Created April 17, 2012 19:14
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