我已经将附件插入到 azure cosmos documentDB 中。 插入附件后,我在 cosmosDB 门户中看不到任何附加附件。
我的问题是我将在 azure cosmosdb 门户区域中的何处查看我上传的附件。我不知道我的附件在哪里显示 azure 门户,并且我正在使用 azure cosmosdb 试用帐户。请有人回答我。
最佳答案
我认为您无法在门户中查看它,
来自docs
Azure Cosmos DB allows you to store binary blobs/media either with Azure Cosmos DB (maximum of 2 GB per account) or to your own remote media store. It also allows you to represent the metadata of a media in terms of a special document called attachment. An attachment in Azure Cosmos DB is a special (JSON) document that references the media/blob stored elsewhere. An attachment is simply a special document that captures the metadata (for example, location, author etc.) of a media stored in a remote media storage.
顺便说一句
虽然 cosmosdb 允许您存储文件(它们存储为附件),但我不建议使用它。
如果您注意到上面的示例 JSON,在附件下有一行“media”:“/media/5VEpAMZpeasdfdfdAAAAAOFDl80B”。
这实际上是指向存储的二进制负载的链接。您需要查询该 URI 才能获取有效负载。
关于c# - 如何在azure cosmosdb门户区域中查看Azure cosmosdb附件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49254761/