title: WebClient powershell Download return an empty file
body: <p>I am trying to download the image below into a local directory but the resulted image appears empty.</p>
  
  <p><a href="http://www.capecountyhomes.com/Homes/Images/Listings/77977723/1/Photo.jpg" rel="nofollow">http://www.capecountyhomes.com/Homes/Images/Listings/77977723/1/Photo.jpg</a></p>
  
  <p>This seems like a simple task but for some reason, the resulted image is somehow 0 bytes. below is my code</p>
  
  <pre><code>$wc = new-object System.Net.WebClient 
  $wc.DownloadFile("http://www.capecountyhomes.com/Homes/Images/Listings/77977723/1/Photo.jpg","C:/images/test.jpeg")
  </code></pre>
  
  <p>but the image test.jpeg in my local directory is 0 bytes.</p>
  
  <p>Does anyone know what the issue could be?</p>
  
  <p>Thanks</p>