BufferedOutputStream 不要使用write(byte[]) 因为每次缓存读取的长度不一定等于指定的长度,导致写入的内容不正确,正确方法:write(byte[],0,length); 其中length 是BufferedInputStream 每次真正读取到的数据长度
BufferedOutputStream 不要使用write(byte[]) 因为每次缓存读取的长度不一定等于指定的长度,导致写入的内容不正确,正确方法:write(byte[],0,length); 其中length 是BufferedInputStream 每次真正读取到的数据长度