server {
listen 9029;
location / {
gridfs static_files field=filename type=string;
mongo 127.0.0.1:27017;
}
}
su i an download img from mongo,
see: mdirolf/nginx-gridfs - GitHub
https://github.com/mdirolf/nginx-gridfs
2011/9/22 Harsha <srihars...@hotmail.com>:
...
--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
俺: http://about.me/zoom.quiet
文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/
--
Based on the code you shared, it's clear that you are not using GridFS at all. GridFS utilizes a specific two-collection schema and has the advantage of being able to store large files across multiple documents and track additional metadata such as filename, content hashes, upload date, etc. Additionally, all drivers provide a consistent API for accessing those files.
Your code is simply storing BSON binary values in arbitrary documents. While that isn't GridFS, it is also a perfectly valid use case and is not a problem (provided you're aware of the fact that this isn't GridFS and the API documentation for GridFS does not apply).
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/593de89b-83ab-4fc4-a965-139fd2d515c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.