Storing Images in MongoDB Using NodeJS
5 min readAug 21, 2021
The BSON type binData
I hope that when you first see the title you might be assuming that you will see some concept related to GridFS
. But sorry! not at all. If you are looking for something that relates to GridFS this article is NOT for you. Because we are not going to touch GridFS. Instead, we will learn about one of MongoDB BSON types known as Binary data
alias binData.
Please check the list of BSON types that MongoDB supports.
I will probably come up with a different comprehensive article on GridFS. But here…