<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/mongo-file-center/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 19:02:34 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/mongo-file-center/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何用 Rocket 框架来回应并下载 MongoDB 的文件中心里的文件？</title><link>https://magiclen.org/cn/rocket-mongo-file-center-download-response/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
在先前的文章中，我们介绍了能让 Rocket 框架直接回应 MongoDB 文件中心里的文件的方法。如果想要让网页浏览器在收到服务器传来的文件数据时，将其下载成文件的话，可以参考这篇文章。]]></description><category>Rust</category><category>NoSQL</category><category>数据库</category><category>Rust</category><category>Rocket</category><category>MongoDB</category><category>mongo-file-center</category><category>rocket-mongo-file-center-download-response</category><guid>https://magiclen.org/cn/rocket-mongo-file-center-download-response</guid><pubDate>Sun, 25 Aug 2019 04:00:29 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何用 Rocket 框架来回应 MongoDB 的文件中心里的文件？</title><link>https://magiclen.org/cn/rocket-mongo-file-center-raw-response/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
在先前的文章中，有介绍过用 Rust 编程语言搭配 MongoDB 来保存文件的方式，那么要如何将其应用到 Rocket 框架中，使 Rocket 框架能够回应文件中心保存的数据呢？]]></description><category>Rust</category><category>NoSQL</category><category>数据库</category><category>Rust</category><category>Rocket</category><category>MongoDB</category><category>mongo-file-center</category><category>rocket-mongo-file-center-raw-response</category><guid>https://magiclen.org/cn/rocket-mongo-file-center-raw-response</guid><pubDate>Thu, 22 Aug 2019 20:00:37 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何用 Rust 编程语言搭配 MongoDB 来保存文件？</title><link>https://magiclen.org/cn/mongo-file-center/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt>
MongoDB 是文档导向的数据库，适合用来保存无需复杂查找的大量数据，也可以用来保存文件。未超过 16777216 字节（约 16MB）的 BSON 文档能直接存在一般的集合(collection)之中，如果将文件放进 BSON 文档中且没有超过大小限制的话，则文件可以直接存进一般的集合；如果文档会超过 16777216 字节，也可以使用 MongoDB 提供的 GridFS 功能，自动将文件切...]]></description><category>Rust</category><category>NoSQL</category><category>数据库</category><category>Rust</category><category>MongoDB</category><category>mongo-file-center</category><guid>https://magiclen.org/cn/mongo-file-center</guid><pubDate>Mon, 29 Apr 2019 04:00:19 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>