Tuesday, 10 September 2013

IOUtils.copy() in tcp

IOUtils.copy() in tcp

Hi I am currently making a program that sends a file over tcp from the
client to server via the IOUtils by copying the fileinputstream to the
outputstream in the client and copying the input stream to
fileoutputstream in the server. But for this to work, I have to close the
streams at the end of the file transfer and after that, I cannot send
another file. So is there a way to send multiple files using this method?
Thanks

No comments:

Post a Comment