byte[] buf = new byte[1024];
int readLen = 0;
while ((readLen = fileInputStream.read(buf)) != -1) {
fileOutputStream.write(buf, 0, readLen);
}
既然1KB = 1024 byte
那不是最多只能读取1kb大小的文件,为什么还可以读取更大的文件呢