Mongodb GridFS using Python

Data is collected and stored in different forms depending on the nature of data. It can be in the form of text, images, videos, audio files and files in other formats. MongoDB can be used for storing all kinds of data, but so far we have used it for storing plain text information in MongoDB documents. As you know by now that MongoDB document has a size limit of 16MB. Though 16MB is good enough in most cases but looks tiny if you think of storing high-resolution images, PDF files, music, videos etc.

In this chapter, we are going to see how we can store more information in MongoDB. Till now we played around with storing text in JSON format but in this chapter we’ll see how to store images, PDFs, audio, video etc. I am sure you are going to enjoy this chapter. So, let’s get started! Continue reading Mongodb GridFS using Python