0
我正在使用azure blob storage
。我存储在存储一个txt文件,现在我想通过读它:流式读取器异常URI格式不受支持
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。但如果这个那么任何其他更好的解决方案,请让我知道)