From c2d0b4c62f4413d69e2ad43cdbbc8518e2de1cc7 Mon Sep 17 00:00:00 2001 From: Claus Nagel Date: Sat, 7 Dec 2024 10:10:32 +0100 Subject: [PATCH] fixed writing of ZIP files with textures --- .../org/citydb/core/file/output/ScatterZipOutputStream.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java b/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java index 73106df02..94372bca0 100644 --- a/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java +++ b/impexp-core/src/main/java/org/citydb/core/file/output/ScatterZipOutputStream.java @@ -87,7 +87,8 @@ void writeTo(ZipArchiveOutputStream target, Set entries) throws IOExcept try (BoundedInputStream rawStream = BoundedInputStream.builder() .setInputStream(stream) - .setMaxCount(entry.getCompressedSize()).get()) { + .setMaxCount(entry.getCompressedSize()) + .setPropagateClose(false).get()) { target.addRawArchiveEntry(entry, rawStream); } } else {