title: Why does my code to download files produce corrupted PDFs?
body: <p>I have a problem when downloading PDF files with the following code:</p>
  
  <pre class="lang-cs prettyprint-override"><code>WebClient client = new WebClient();
  client.DownloadFile(remoteFilename, localFilename);
  </code></pre>
  
  <p>Whereas other files are downloaded successfully, when I download and save a PDF document it shows a document repaired error when I try to open it.</p>