I am getting very slow speed while downloading the storage blob from Azure storage account. I am using .net core 3.1 web api application to download it and return it with api response. Following is the code.
BlockBlobClient blockBlobClient = blobContainerClient.GetBlockBlobClient(filepath);
if (await blockBlobClient.ExistsAsync() == false)
return BadRequest("blob " + blockBlobClient.Name + " is not present");
Stream blockBlobStream = await blockBlobClient.OpenReadAsync();
return File(blockBlobStream, blockBlobClient.GetProperties().Value.ContentType, blockBlobClient.Name);
Azure account details
Performance tier: Standard/Hot
location: Central US, East US 2
replication: Geo-redundant storage (GRS)
account kind: BlobStorage
I am not getting whether this is the issue in my code or should I use any other method to download or is it the problem from Azure storage account or bandwidth related issue. Kindly please let me know if anyone knows the solution.
Thanks in advance..