public FileStreamResult GetImage(string path, string id, bool allowCompress, ImageSize size, params FileManagerDirectoryContent[] data)
{
CloudBlobDirectory sampleDirectory = container.GetDirectoryReference(path);
CloudBlockBlob blob = container.GetBlockBlobReference(path);
MemoryStream memoryStream = new MemoryStream();
blob.DownloadToStreamAsync(memoryStream).GetAwaiter().GetResult();
memoryStream.Seek(0, SeekOrigin.Begin);
return new FileStreamResult(memoryStream, "APPLICATION/octet-stream");
//return new FileStreamResult((new MemoryStream(new WebClient().DownloadData(this.FilesPath + path))), "APPLICATION/octet-stream");
}
I'm not sure what the parameters for id, allowCompress, size and data are used for. But then again your method doesn't use them either.