node.js - i am trying to store images in mongo gridfs using nodejs -


i create chunks of file , write "manually" using mongo inserts, far understand gridfs take care of chunking. if shed light on nodejs api implementation of gridfs in mongodb appreciated. others looking solution can have resource here :)

i need sample code can upload images gridfs using nodejs.

if want use gridfs, indeed should use apis provide same level of abstraction. said yourself, use mongo queries directly, end writing own implementation of gridfs library.

i'd start gridstore, part of mongo's native node.js driver. last year, there primer girdfs on on node.js knockout, check out practical examples.

what need is:

  • connect mongo database
  • get instance of grid class active db connection parameter
  • use gridfs via grid instance

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -