在MongoDb Atlas中存储图像

时间:2019-11-18 04:54:37

标签: mongodb mongodb-atlas

我正在尝试将图像存储在现有集合中。 例如,我的一个文档看起来像

{"_id":{"$oid":"5dc5a4851c9d440000cb2d5b"},"Name":"Johnny's Tavern","Monday":"11:30am-10pm","Tuesday":"11:30am-10pm","Wednesday":"11:30am-10pm","Thursday":"11:30am-10pm","Friday":"11:30am-10pm","Saturday":"11:30am-10pm","Sunday":"11:30am-10pm"}

因此,我尝试使用URL链接或从文件资源管理器中添加字段“ pic”来存储类似https://media-cdn.tripadvisor.com/media/photo-s/11/fc/6d/bb/restaurant-frontage.jpg的图像。

0 个答案:

没有答案