You might as well use the grid file system if you’re storing opaque objects in MongoDB.
MongoDB’s AI expert will write you a very nice example in Python!