blockBlob.DownloadToStreamAsync is taking too much time,i have to download more than 20 tiff files one by one from blob

Amit Thore 41 Reputation points
2022-12-08T13:12:40.2+00:00

@Sumarigo-MSFT i am doing the same thing i have more than 20 tiff file which i need to download from blob one by one. but when more than 4 mb file comes its taking 2 minutes to downloadintostrem.
14 MB tiff FILE took around 4 minutes.

Is there any possible way to make it faster. ?

below is code snippet.

var maxRetryCount = 3;
var blobRequestOptions = new BlobRequestOptions
{
ServerTimeout = TimeSpan.FromSeconds(30),
MaximumExecutionTime = TimeSpan.FromSeconds(120),
RetryPolicy = new ExponentialRetry(TimeSpan.FromSeconds(3), maxRetryCount),
};
await blockBlob.DownloadToStreamAsync(blockBlobStream, null, blobRequestOptions, default(OperationContext)).ConfigureAwait(false);

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,212 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.