title: Stream with openWrite not writing until it is closed
body: <p>I have a stream writer that opens using a WebClient.OpenWrite call.  For this simplified case, assume that reader is reading a multiple of dataChunkSize.</p>
  
  <pre><code>using (Stream writer = myWebClient.OpenWrite(myURIString)
  {
      using (FileStream reader = new FileStream(myFileName, FileMode.Open, FileAccess.Read)
      {
          for(int i = 0; i &lt; reader.Length; i += dataChunkSize)
          {
              byte[] data = new byte[dataChunkSize];
              reader.Read(data, 0, dataChunkSize);
              writer.Write(data, 0, dataChunkSize);
          }
  
          reader.Close();
          reader.Dispose();
      }
  
      writer.Close();
      writer.Dispose();
  }
  </code></pre>
  
  <p>My data is the size of 2 dataChunkSizes.  However, it does not send any data (no data is received) until the writer.Close() call is called, where it only sends the first dataChunkSize worth of data...the second dataChunkSize of data is never sent.</p>
  
  <p>How can I get it to send after every Write call?  I tried adding writer.Flush() but this did not help.</p>
  
  <p>Thanks.</p>