When transferring files they get corrupted with java sockets?

On the server: ouput. WriteLong(size) you don't seem to handle this on the client side, you just append it to the downloaded file as if it was part of the binary data.

On the server: ouput. WriteLong(size); you don't seem to handle this on the client side, you just append it to the downloaded file as if it was part of the binary data.

It looks like you send the length of the file from the server to the client: ouput. WriteLong(size); but your client code never does anything with the transmitted size, so it takes up the first few bytes of the file.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions