Closed artem-karpenko closed 5 years ago
Need to think of a way to set real and compressed size fields in local file headers in resulting ZIP file. Apparently while 0 sizes work fine for plain archives, it doesn't work for encrypted files (7-Z throws a header error when unpacking).
See https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT. It's actually possible to provide crc and sizes right after file data while setting appropriate bit GBD record.
Need to think of a way to set real and compressed size fields in local file headers in resulting ZIP file. Apparently while 0 sizes work fine for plain archives, it doesn't work for encrypted files (7-Z throws a header error when unpacking).