windows – 如何连接Azure存储以从blob存储中读取.txt文件
发布时间:2020-12-14 02:13:54 所属栏目:Windows 来源:网络整理
导读:任何人都可以让我知道如何从Azure Blob存储中读取文本文件? 解决方法 这很简单: string text = CloudStorageAccount.Parse("your connection string").CreateCloudBlobClient().GetBlobReference("path/to/the/blob.txt").DownloadText(); 当然,如果blob在
任何人都可以让我知道如何从Azure Blob存储中读取文本文件?
解决方法
这很简单:
string text = CloudStorageAccount.Parse("<your connection string>").CreateCloudBlobClient().GetBlobReference("path/to/the/blob.txt").DownloadText(); 当然,如果blob在公共容器中,您可以这样做: string text = new WebClient().DownloadString("http://youraccount.blob.core.windows.net/path/to/blob.txt"); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- R和RStudio找不到Rprofile.site
- 错误处理 – Windows Workflow Foundation 4(WF4)错误处理
- 开启Telnet服务
- 是卸载/重新安装在Windows 7上更新PyCharm的最佳方法吗?
- Windows – IIS7.5应用程序池回收 – .Net OutOfMemoryExce
- 窗口 – SETX不追加系统路径变量的路径
- 带有Windows窗体应用程序的C#套接字服务器
- windows-7 – Windows 10上的ISCSI性能降低
- windows – 我的.bat脚本出了什么问题?
- windows-server-2003 – 从桌面删除的文件不会转到回收站
推荐文章
站长推荐
热点阅读