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

查看:67
本文介绍了将图像存储在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天全站免登陆