Possible Duplicate:
how to implement TCP server and TCP client in java to transfer files
I write application which will send files to server through socket. Its very important to all files came correct from client to server with no errors, lost data and other like that. To do that I need to use TCP protocol I think but I dont know how to do that. Is socket in Java is default using TCP. If not how can I send data through TCP? Thanks for any help and tip.
And here’s a good example from this thread Java TCP socket: data transfer is slow