title: WebClient openWrite not writing until it is closed
body: <p>I'm using a WebClient to send raw bytes to a web server. The web server knows what to do with those raw bytes. However the WebClient doesn't actually send the data to the server until the call to w.Close() on the last line. <strong>I would like to send the data every time w.Flush() is called.</strong> Is that possible?</p>
  
  <pre><code>        string filename = "C:\\blah.dat";
          byte[] content = File.ReadAllBytes(filename);
  
          WebClient wc = new WebClient();
          Stream w = wc.OpenWrite("http://localhost:80/files/");
  
          for (int i = 1; i &lt; 10; i++)
          {
              w.Write(content, 0, content.Length);
              w.Flush();
          }
  
          w.Close();
  </code></pre>
  
  <p>p.s I'm not interested in UploadFile. I'm just using the file's byte[] as sample binary data.</p>