【发布时间】:2012-07-24 09:48:08
【问题描述】:
我正在使用azure blob storage。我在存储中存储了一个 txt 文件,现在我正在尝试阅读它:
StreamReader reader = new StreamReader(Blob.Uri.AbsoluteUri);
Blob containes the reference of the blob where txt file is stored.
但在这里我得到了异常(URI formats are not supported.)。我认为streamreader 不支持URI 格式。有人可以为此给我一个更好的工作吗?
( 我知道我们可以使用CloudBlob 的DowmloadToFile 方法来下载文件,然后使用Server.MapPath 创建一个地址并将该地址而不是URI。但是如果有任何其他更好的解决方案那么请告诉我)
【问题讨论】:
标签: c# azure azure-storage