There are various reasons for this type error:
- The archive is corrupt.
Solution - The archive will need repairing. - It is not a .zip archive.
It may be a .rar or other compressed type.
Solution - Have to find a correct archive to use this code. - There is more than 1 part to the archive.
A multi part zip file.
Solution - Read in all the files before decompression. - The file may be hidden or have extended characters in the name.
Solution - Check your file attributes/permissions and verify the file name.
Opening the file with your favorite zip/unzip utility (7-zip, winzip, etc) will tell which of these it could be.
Thanks,
Prasad Das
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.