title: Copy Azure block blob to Azure file share?
body: <p>How do I copy a block (or page) blob in azure storage to an Azure file share? 
  My example code works fine if I download the block blob to a local file, but there does not appear to be a method to download to an Azure file share.  I've looked at the Azure data movements library but there's no example of how to do this. </p>
  
  <pre><code>void Main()
  {
      string myfile =@"Image267.png";
  
      CredentialEntity backupCredentials = Utils.GetBackupsCredentials();
      CloudStorageAccount backupAccount = new CloudStorageAccount(new StorageCredentials(backupCredentials.Name, backupCredentials.Key), true);
      CloudBlobClient backupClient = backupAccount.CreateCloudBlobClient();
      CloudBlobContainer backupContainer = backupClient.GetContainerReference(@"archive");
      CloudBlockBlob blob = backupContainer.GetBlockBlobReference(myfile);
  
      CredentialEntity fileCredentails = Utils.GetFileCredentials();
      CloudStorageAccount fileAccount = new CloudStorageAccount(new StorageCredentials(fileCredentails.Name,fileCredentails.Key), true);
      CloudFileClient fileClient =    fileAccount.CreateCloudFileClient();
      CloudFileShare share = fileClient.GetShareReference(@"xfer");
  
      if (share.Exists())
      {
          CloudFileDirectory rootDir = share.GetRootDirectoryReference();
          CloudFileDirectory sampleDir = rootDir.GetDirectoryReference("hello");
          if (sampleDir.Exists())
          {
               CloudFile file = sampleDir.GetFileReference(myfile);
  //           blob.DownloadToFile(file.ToString());
          }       
      }
  }
  </code></pre>
  
  <p>The part that does not work is the commented out line <code>blob.DownloadToFile</code></p>
  
  <p>Any ideas on how I can do this? </p>