// Attempt to extract the archive try { final archive = ZipDecoder().decodeBytes(bytes); final repairedBytes = ZipEncoder().encode(archive);