how to insert blob data in mongodb,is there any additaional software required

NAVNEET MATHPAL picture NAVNEET MATHPAL · Feb 12, 2014 · Viewed 18k times · Source

I have just installed mongodb on my system, I wanted to know if it was possible to insert blob data in mongodb. What is the procedure and if any other softwares is required for this ?

Answer

Neil Lunn picture Neil Lunn · Feb 12, 2014

Absolutely not. And before some fool just responds "GridFS", please read the documentation in the link.

Now that you have actually read the docs, consider that your blob (binary) data is probably under the 16MB BSON limitation. In which case, the answer is just Base64 encode it and put it into a field of your document.

Very Simple.