c# - 如何在azure cosmosdb门户区域中查看Azure cosmosdb附件?

标签 c# azure azure-cosmosdb

我已经将附件插入到 azure cosmos documentDB 中。 插入附件后,我在 cosmosDB 门户中看不到任何附加附件。

Click here

我的问题是我将在 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/

相关文章:

azure - 如何使用 Graph API 连接到 DocumentDB 模拟器?

c# - SQL Server 精简版 4.0 : Error: 26 - Error Locating Server/Instance Specified

c# - 如何使用 Active Directory 从属性中检索值?

c# - 如何在调用 API 之前启动注入(inject)服务?

azure - ARM : Get network Interface Private IP and Default Gateway

c# - 限制 CosmosDB 查询的 1000 条记录

c# - 围绕枢轴点重复旋转点

java - 如何用java检查文件是否存在于Azure Blob容器中

azure - Application Insights 显示在实时指标中,但不显示在日志分析中

Azure Cosmos DB : HTTP 400 in Application Insights