Gridfs is a file specification that stores large files in MongoDB. All officially supported drivers implement the GRIDFS specification. Take a quick look at the official instructions:When to use GridfsIn MongoDB, use Gridfs for storing files larger
Gridfs
Introduction
Gridfs
is a
MongoDB
a built-in feature that can be used to store a large number of small files.
Http://www.mongodb.org/display/DOCS/GridFS
Gridfs is a file specification that stores large files in a MongoDB database. All officially supported drivers implement the GRIDFS specification.Gridfs is a built-in feature in MongoDB that can be used to store a large number of small files.Website
Original: MongoDB Data summaryThe previous Redis Data summary topic is very popular, here the MongoDB series of information is also a simple collation. Hope to be useful to everyone. Last update time: 2013-04-22What is 1.MongoDB?
MongoDB
statement: The article is mainly from the "MongoDB Combat" a book, the main want to learn from the book MongoDB Knowledge, deepen understanding, so write in their own blog, as a record, in the final chapter, There will be a Web application that sets
What is 1.MongoDB?
MongoDB Introduction ppt Sharing
MongoDB Gridfs Introduction ppt Two
First knowledge of MongoDB Gridfs
MongoDB Gridfs Introduction
A NoSQL and MongoDB introduction ppt
MongoDB: Next Generation MySQL?
Gridfs is a built-in feature of MongoDB that provides a set of file manipulation APIs to utilize MongoDB to store files, the basic principle of Gridfs is to save files in two collection, a save file index, a save file content, The contents of the
Copy CodeThe code is as follows:
Initialize Gridfs
$conn = new Mongo (); Connect to MongoDB
$db = $conn->photos; Select Database
$grid = $db->getgridfs (); Get Gridfs Object
Gridfs There are three ways to store filesThe First Direct storage
Gridfs is a built-in feature of MongoDB that provides a set of file manipulation APIs to utilize MongoDB to store files, the basic principle of Gridfs is to save files in two collection, a save file index, a save file content, The contents of the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.