public async Task <IActionResult> GetFile(string filename) { string bloburi = "csvpath/" + filename + ".csv"; Stream ms = new MemoryStream(); ms = await BlobClient.DownloadStream(bloburi); ms.Position = 0; return(File(ms, "application/octet-stream", filename + ".csv")); }