Disyne
Nov 24th, 2009, 10:52 PM
I'm transferring a file from client to server.
On the client I am reading 10,000 bytes at a time and sending the 10,000 bytes using a binary writer to the stream.
On the server side I am reading these and writing it to a newly created file.
Now after lots of trial and error I have reached a 'semi working' stage. What happens is I have made a message box appear on the server side showing me the total amount of received bytes out of the total incoming file size. This message box appears every 10,000 bytes received. It appears to work flawless with the message box, except when I disable the message box from appearing it seems to not work. By not working it seems to not receive all the incoming data.
So the delay the message box is causing seems to be making it work. I am just unsure why.
On the client I am reading 10,000 bytes at a time and sending the 10,000 bytes using a binary writer to the stream.
On the server side I am reading these and writing it to a newly created file.
Now after lots of trial and error I have reached a 'semi working' stage. What happens is I have made a message box appear on the server side showing me the total amount of received bytes out of the total incoming file size. This message box appears every 10,000 bytes received. It appears to work flawless with the message box, except when I disable the message box from appearing it seems to not work. By not working it seems to not receive all the incoming data.
So the delay the message box is causing seems to be making it work. I am just unsure why.