title: Get .txt file instead of .jpg - using Webclient and DownloadFile();
body: <p>Get .txt file instead of .jpg - using <code>Webclient</code> and <code>DownloadFile();</code></p>
  
  <p>I'm trying to download the .jpg from this URL:</p>
  
  <p><a href="http://1.bp.blogspot.com/_pK6J3MTn5co/S6kuH3aqbeI/AAAAAAAACUY/06axvmjU91k/s1600-h/avengers02_B&amp;W_UL.jpg" rel="nofollow">http://1.bp.blogspot.com/_pK6J3MTn5co/S6kuH3aqbeI/AAAAAAAACUY/06axvmjU91k/s1600-h/avengers02_B&amp;W_UL.jpg</a></p>
  
  <p>Using this code:</p>
  
  <pre><code>private void TEST_button1_Click(object sender, EventArgs e)
  {
      WebClient MyDownloader = new WebClient();
      MyDownloader.DownloadFile(@"http://1.bp.blogspot.com/_pK6J3MTn5co/S6kuH3aqbeI/AAAAAAAACUY/06axvmjU91k/s1600-h/avengers02_B&amp;W_UL.jpg", @"c:\test.jpg");
  }
  </code></pre>
  
  <p>However, when I run this, I end up with a file called <strong>test.jpg</strong>, which contains html mark up... : </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;avengers02_B&amp;amp;W_UL.jpg (image)&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
  &lt;!--
  if (top.location != self.location) top.location = self.location;
  // --&gt;
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body bgcolor="#ffffff" text="#000000"&gt;
  &lt;img src="http://1.bp.blogspot.com/_pK6J3MTn5co/S6kuH3aqbeI/AAAAAAAACUY/06axvmjU91k/s1600/avengers02_B%26W_UL.jpg" alt="[avengers02_B&amp;amp;W_UL.jpg]" border=0&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I download the actual .jpg?</p>
  
  <p>Any help is greatly appreciated - thank you!</p>