Store images in a MongoDB database

Chani picture Chani · Jan 25, 2011 · Viewed 295.6k times · Source

How can I store images in a MongoDB database rather than just text? Can I create an array of images in a MongoDB database? Will it be possible to do the same for videos?

Answer

Gates VP picture Gates VP · Jan 26, 2011

Please see the GridFS docs for details on storing such binary data.

Support for your specific language should be linked to at the bottom of the screen.