Esempio n. 1
0
        public async Task <IActionResult> Download(string containerName, string blobName)
        {
            ViewData["containerName"] = containerName;
            var blobContentAsync = await blobStorageProvider.GetBlobContentAsync(containerName, blobName);

            var blobDownloadInfo = blobContentAsync.Value;
            var fileInfo         = new FileInfo(blobName);

            return(File(blobDownloadInfo.Content, blobDownloadInfo.ContentType, fileInfo.Name));
        }