将图像存储在 MongoDB 数据库中 [英] Store images in a MongoDB database

查看:29
本文介绍了将图像存储在 MongoDB 数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 MongoDB 数据库中存储图像而不仅仅是文本?我可以在 MongoDB 数据库中创建一组图像吗?可以对视频做同样的事情吗?

How can I store images in a MongoDB database rather than just text? Can I create an array of images in a MongoDB database? Will it be possible to do the same for videos?

推荐答案

请参阅 GridFS 有关存储此类二进制数据的详细信息的文档.

Please see the GridFS docs for details on storing such binary data.

应在屏幕底部链接到对您的特定语言的支持.

Support for your specific language should be linked to at the bottom of the screen.

这篇关于将图像存储在 MongoDB 数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆