开发者

How to retrieve thumbnail url from Azure table?

开发者 https://www.devze.com 2023-01-16 13:50 出处:网络
How to retrieve thumbnail url from Azure 开发者_开发百科table using LINQ query?Depends on what you are trying to accomplish. If you have a thumbnail already generated you can get access it from the co

How to retrieve thumbnail url from Azure 开发者_开发百科table using LINQ query?


Depends on what you are trying to accomplish. If you have a thumbnail already generated you can get access it from the container. Just use DownloadByteArray.

var client = this.account.CreateCloudBlobClient();
client.RetryPolicy = RetryPolicies.Retry(3, TimeSpan.FromSeconds(5));
var container = client.GetContainerReference("containerName");
CloudBlob blob = this.container.GetBlobReference("id");
byte[] bytes = blob.DownloadByteArray();

You can also assign a SharedAccessPolicy if you want to secure the uri to the blob. If you want to see more about it you can download the code for our book that has exactly this scenario. We are working on upgrading it to the SDK 1.4 in the next month.

0

精彩评论

暂无评论...
验证码 换一张
取 消