I am trying to download a file from azure blob storage using the console app but it is not working well. I am getting 206 responses from DownloadToAsync() method. I am not getting any exceptions, but it's not getting downloaded either. Below are some code snippets.
string fileName = Path.GetFileName(localFilePath); //localFilePath is path of file
BlobContainerClient containerClient = new BlobContainerClient("connectionstring","containerName");
BlobClient blobClient = containerClient.GetBlobClient(fileName);
var response = await blobClient.DownloadToAsync(localFilePath);
In response, I am getting a 206 status code. I have tried the same without async as well but still no luck.