Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 如何从Azure表中检索缩略图url?_Windows_Linq_Azure_Azure Storage - Fatal编程技术网

Windows 如何从Azure表中检索缩略图url?

Windows 如何从Azure表中检索缩略图url?,windows,linq,azure,azure-storage,Windows,Linq,Azure,Azure Storage,如何使用LINQ查询从Azure表中检索缩略图url?取决于您试图完成的任务。如果已经生成了缩略图,则可以从容器中访问它。只需使用DownloadByteArray var client = this.account.CreateCloudBlobClient(); client.RetryPolicy = RetryPolicies.Retry(3, TimeSpan.FromSeconds(5)); var container = client.GetContainerReference("

如何使用LINQ查询从Azure表中检索缩略图url?

取决于您试图完成的任务。如果已经生成了缩略图,则可以从容器中访问它。只需使用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();

如果要保护blob的uri,还可以分配SharedAccessPolicy。如果您想了解更多信息,可以下载与此场景完全相同的。我们正在努力在下个月将其升级到SDK 1.4。

您能否发布有关如何将缩略图上载到Azure的代码?理论上,如果您使用SDK中的存储客户机库,您可以向任何CloudBlob实例的Uri属性询问指向blob的URL。