Answer the question
In order to leave comments, you need to log in
Resume file, write method
I am making a client-server application, downloading a file from the server to the client. You need to download the file. That is, for example, a 50mb file, downloaded 20 and broke off, with the next jump of this file, it downloaded the remaining 30mb, and did not download the file again.
Going into the off-line documentation, I saw this:
public abstract void write(char[] cbuf, int off, int len)
os.write(mybytearray, (int) clientFileSize, n); //server
bos.write(mybytearray, (int) clientFileSize, bytesRead); //client
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question