Oh, I see you posted some code.
The code seems ok.
Try comparing the file size(as reported by a file browser) with the size you read in the client and with totalbytes from the server.
Which is the wrong one?
Also, in the client, test the return values of writeRawData and waitForBytesWritten. Do they ever return -1?
Regards
Bookmarks