Storing large file of 100 MB in Mongodb(在 Mongodb 中存储 100 MB 的大文件)
问题描述
我想在 MongoDB 中存储 100MB 到 1GB 的大文件,就像 BLOB 对象一样,以后可以更容易地检索它.我使用的编程语言是 PHP请在这个意义上指导我.
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 in this sense.
推荐答案
您需要为此使用 GridFS,因为通常 MongoDB 文档限制为 16MB.请参阅 http://www.php.net 的 PHP 文档中的概述和示例/manual/en/class.mongogridfs.php
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
这篇关于在 Mongodb 中存储 100 MB 的大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Mongodb 中存储 100 MB 的大文件


- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- Laravel 仓库 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01