netstream progress

I'm uploading a file via FTP using a netstream

I have this line of code:

intBytesRec = mNetStream.Read(mBytes, 0, CInt(mTCPClient.ReceiveBufferSize))

The problem i'm having is my application runs to this line of code then sticks on this line of code until the file is uploaded.

I want to report the progress of the file upload to the user, but i can't because this line of code is all that's executed until the file is finished.

I've tried stepping through the code and i see that if i pause it at different intervals that the intBytesRec variable increases over time.

So really all i want to know is how can i report progress from the netstream. Hmm come to think of it I suppose this can be done by an event from the netstream instance

Thanks in advance



Answer this question

netstream progress

  • netstream progress