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 的大文件
基础教程推荐
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php中的PDF导出 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
