【发布时间】:2017-04-27 13:51:52
【问题描述】:
我尝试在 BlobHelper 下载之后或之前获取属性。GetBlobReference() 用于记录,最后我尝试使用 blob.FetchAttributes();但不工作我的属性是空的。我的容器和我的 blob 没有权限
public static CloudBlob GetBlobReference(string containerName,string fileName)
{
var blobClient = GetBlobClient();
if (blobClient != null)
{
var contRef=blobClient.GetContainerReference(containerName);
return contRef.GetBlobReference(fileName);
}
return null;
}
var blob = BlobHelper.GetBlobReference(SelectedContainer,
fileName);
if (blob.Properties != null)
{
//I try to get Lenght of blob but it is -1
}
【问题讨论】:
-
请分享
BlobHelper.GetBlobReference的代码。 -
固定先生 .. :) 还是你的意思是图片?
-
如果可能,请包含代码。由于
BlobHelper.GetBlobReference是你写的,我不知道你在那里使用了什么SDK 方法。通过查看该代码,我将更容易提供答案。谢谢。 -
你有权利我现在修好了
标签: azure properties attributes