コード例 #1
0
        public async Task <IActionResult> Download(string blobName, string name)
        {
            try
            {
                var byteImg = await _imageStorageService.DownloadAsync(blobName);

                return(File(byteImg, "application/octet-stream", name));
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }