title: Download File from Azure Blob Storage
body: <p>I have an application that allows users to upload photos, which are stored in Azure Blob Storage. The user also has the ability to view these photos. To view them, we want the application to download the image to the default download location. At the moment, the upload works perfect. But the download function that I found for Azure API doesn't seem to be doing anything. Also, I can't really specify a download location because this functionality needs to work on desktop/laptops as well as on mobile devices which have different default directories.</p>
  
  <p>This seems like it should be simple but I cannot find anything to help me. </p>
  
  <p>Here is a sample of my code:</p>
  
  <pre><code>CloudBlobContainer container = blobClient.GetContainerReference("photos");
  CloudBlob blob = container.GetBlobReference(photo.BlobUrl);
  //copy blob from cloud to local gallery
  blob.DownloadToFile(photo.ImageName);
  </code></pre>
  
  <p>The <code>blob.DownloadToFile(photo.ImageName);</code> causes a server request but nothing happens, aka no file is downloaded.</p>