unzip the zip file with the password
ahmadkhedr opened this issue · 2 comments
ahmadkhedr commented
I tried to unzip the zip file with the password, but an error occurred: "Value not in range: -12"
megataps commented
I got the same problem
Here is my snipe code:
`
final directory = await getApplicationDocumentsDirectory();
// 'assets/offline/abc.zip'
ByteData _bytes = await rootBundle.load(assetPath);
final bytes = _bytes.buffer.asUint8List();
// Decode the Zip file
final archive = ZipDecoder().decodeBytes(bytes, verify: true, password: "123");
`
ahmadkhedr commented
@megataps
you can try the solution in this issue:
#83 (comment)
it worked for me