byte[] bytes = new byte[1024];
while (inputStream.read(bytes) != -1) {
    zipOutputStream.write(bytes);
}