Uploading file using NetworkStream
<p>We are trying to get image uploading working with TinyPic that tracks the progress of the upload. We used HttpWebRequest earlier but since that doesn't support tracking progress, we decided to try low level methods such as TcpClient. </p>

<p>The code when executed gets "stuck" in this line:</p>

<pre><code>int networkBytesRead = networkStream.Read(buffer, 0, buffer.Length);
</code></pre>

<p>The code hangs there for more than one minute.</p>

<p>Please have a look at this code for the full class: 
<a href="http://paste2.org/p/331631" rel="nofollow">http://paste2.org/p/331631</a></p>

<p>Any input is appreciated. </p>

<p>Thanks, 
McoreD from ZScreen</p>
