Storing large file of 100 MB in Mongodb

后端 未结 2 333
说谎
说谎 2021-01-21 11:33

I want to store Large file of 100MB to 1GB in MongoDB just like BLOB object and later on can easier retrieve it. The programming language that i am using is PHP Please guide me

2条回答
  •  梦毁少年i
    2021-01-21 12:37

    You need to use GridFS for this as normally MongoDB documents are limited to 16MB. See the overview and examples in the PHP documentation at http://www.php.net/manual/en/class.mongogridfs.php

提交回复
热议问题