Skip to content

Commit ee9b781

Browse files
committed
Be able to handle writing big zip-files.
CURA-12983
1 parent a0d407a commit ee9b781

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Charon/filetypes/OpenPackagingConvention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def getStream(self, virtual_path: str) -> IO[bytes]:
192192

193193
self._last_open_path = virtual_path
194194
try: # If it happens to match some existing PNG file, we have to rescale that file and return the result.
195-
self._last_open_stream = self._zipfile.open(virtual_path, self._mode.value)
195+
self._last_open_stream = self._zipfile.open(virtual_path, self._mode.value, force_zip64=True)
196196
except RuntimeError: # Python 3.5 and before couldn't open resources in the archive in write mode.
197197
self._last_open_stream = BytesIO()
198198
self._open_bytes_streams[virtual_path] = self._last_open_stream # Save this for flushing later.

0 commit comments

Comments
 (0)