Fix stream copying
This commit is contained in:
parent
cf41ff8c87
commit
8eb6c6b0ca
@ -21,7 +21,7 @@ public class CompressZip extends AbstractCompressor {
|
||||
out.putNextEntry(ze);
|
||||
byte[] buf = new byte[8192];
|
||||
int s;
|
||||
while((s = inputStream.read()) != -1){
|
||||
while((s = inputStream.read(buf)) != -1){
|
||||
out.write(buf, 0, s);
|
||||
}
|
||||
out.closeEntry();
|
||||
|
Loading…
Reference in New Issue
Block a user