brendan-duncan / archive

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
MIT License
399 stars 139 forks source link

Failed to decompress zip archive : FormatException: Unexpected extension byte (at offset 68) #257

Open AlexisL61 opened 1 year ago

AlexisL61 commented 1 year ago

I am trying to extract a zip file to a folder using this code, but I get the error FormatException: Unexpected extension byte (at offset 68) :

String uri = "./downloads/tmp.zip";

await extractFileToDisk(uri, "./pack");

I have also tried to use :

String uri = "./downloads/tmp.zip";

final bytes = File(uri).readAsBytesSync();
final archive = ZipDecoder().decodeBytes(bytes);
extractArchiveToDisk(archive, "./pack")

But I get the same error.

Link to the archive I use : https://github.com/Team-Gamechanger/The-Jackbox-Party-Pack-8-German/releases/latest/download/The-Jackbox-Party-Pack-8-German.zip