title: How to download files from Azure BLOB storage from ASP.NET MVC5
body: <p><a href="https://i.stack.imgur.com/LxHwE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LxHwE.png" alt="enter image description here"></a></p>
  
  <p>I have the ability to download files from my Azure Blob storage from a web application. </p>
  
  <p>Once I get my Azure Blob storage list back, it's not downloaded. </p>
  
  <p>Error entering download blob. </p>
  
  <p>I would appreciate it if you could look at my code and let me know what the problem is.</p>
  
  <pre><code>public string DownloadBlob()
      {
          CloudBlobContainer container = GetCloudBlobContainer();
          CloudBlockBlob blob = container.GetBlockBlobReference("myBlob");
          using (var fileStream = System.IO.File.OpenWrite(@"C:\BlobTest"))
          {
              blob.DownloadToStream(fileStream);
          }
          return "success!";
      }
  </code></pre>