The problem is ZipFile
can’t find the line of code that signals the end of the archive, so either:
-
It is not a .zip archive.
- It may be a .rar or other compressed type. Or as I suspect here, you are downloading an html file that auto-redirects to the zip file.
- Solution – Gotta find a correct archive to use this code.
-
The archive is corrupt.
- Solution – The archive will need repairing.
-
There is more than 1 part to the archive.
- A multi part zip file.
- Solution – Read in all the files before decompression.
-
As @ElliotSchmelliot notes in comments, 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.