c# - 从 blob url 容器读取文件

标签 c# visual-studio-2010 azure azure-storage azure-blob-storage

下面是我的 word 文件所在的 blob 网址,我想读取该文件并在我的 Web 表单 (C#) 中显示其内容。

https://vikranttest.blob.core.windows.net/Vikrantproduction/applicationeulaVikrant/vikky.rtf

最佳答案

WebClient client = new WebClient();
string fileString = client.DownloadString(new uri(http://.....)));

现在,如果您将该字符串放入 rtf 框中,它应该保留格式。

关于c# - 从 blob url 容器读取文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8103021/

相关文章:

Azure PowerShell : Enable Application Diagnostics and Site Diagnostics

c# - WP7 芒果 : How do I delete a live tile?

c# - Null 条件运算符不能用于赋值?

visual-studio-2010 - 命名空间错误 - 如何修复?

c# - 表单在运行时可见,但在设计时不可见

c++ - 用不同的 IDE 编译,但只有一个可以工作!

azure - 针对 azure 连接被拒绝或服务不可用的大规模测试

c# - 需要一种数据类型来在 C# 中保存 100 万以上的数字

c# - 多个 AddHostedService dotnet 核心

java - 无法将 Hibernate 与 MySql Azure 数据库连接