上传和存储图像 [英] Uploading and storing images
问题描述
是的,我知道使用Node.js,Express和Mongoose 和如何将图像存储在mongodb与node.js?,但解决方案不是我想要实现的。我想要使用一个Schema来存储图像的二进制数据库(Mongodb with Mongoose)。
Yes, I know about Uploading images using Node.js, Express, and Mongoose and How can I store images in mongodb with node.js? but the solution to those isn't what I want to achieve. I want to be able to use a Schema for the image to be stored in binary the db (Mongodb with Mongoose).
所以,你知道使用的任何应用程序组合Node.js,Express和Mongodb?最好的是,如果有这个组合+玉的任何应用程序,但我想这是很多要求。
So, do you know of any applications that uses the combo Node.js, Express and Mongodb? The best would be if there were any applications with this combo + Jade, but I guess that's to much to ask for.
提前感谢!
推荐答案
这是一个快速示例使用node / express / mongoose存储/显示具有mongodb的img。
Here's an quick example of storing/displaying an img with mongodb using node/express/mongoose.
这篇关于上传和存储图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!