You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this works fine on Linux, calling addFile with a StringStream parameter fails on Windows.
The zip archive is created, but the enclosed file is 200MB+, and the archive cannot be uncompressed.
Here is a minimal example :
{.passl: "-lz".}
import zip/zipfiles
import streams
proctestZip() : void=var z : ZipArchive;
var s =newStringStream("Hello world")
ifopen(z, "test.zip", fmWrite):
try:
addFile(z, "datafile.txt", s)
finally:
close(z)
testZip()
On the other hand, creating zip files from on disk files works on both platforms.
The text was updated successfully, but these errors were encountered:
While this works fine on Linux, calling addFile with a StringStream parameter fails on Windows.
The zip archive is created, but the enclosed file is 200MB+, and the archive cannot be uncompressed.
Here is a minimal example :
On the other hand, creating zip files from on disk files works on both platforms.
The text was updated successfully, but these errors were encountered: