After//when the send operation identifier, started to read the file data, and the server upload data
While ((len=bis. Read (buf)) & gt; 0 {
//System. Out. Println (" len: "+ len);
Bos. Write (buf, 0, len);
Bos. Flush ();
}
Server:
//read the client data and written to a local file
While ((len=bis. Read (buf)) & gt; 0 {
//System. Out. Println (" len: "+ len);
Fbos. Write (buf, 0, len);
Fbos. Flush ();
}
Are written on the method of client transfer files to the server, but there is no files back and forth method validation, it won't cause damage file differences?
Java a great god, Daniel...
CodePudding user response:
Will, file transfer is completed, the application layer should do it again, CRC checkCodePudding user response:
Hello! Thank you, I also know that this check ask thing we did or Java will help me to prepare? Can you give me a corresponding code? Thank you very much!