About Unexpected end of archive and Corrupt header
I got a rar file from our customer,UnrarKit showes "Archive has a corrupt header".
I add "archive.ignoreCRCMismatches = YES;" and error is gone,but no files being unrared.
WinRar for windows can unrar the files successfully.
I try to repair it with "repair tool" in WinRar for windows,it showes "Unexpected end of archive" and "Corrupt header is found"
The demo rar file is here,please help.Thanks. https://drive.google.com/file/d/16aPRcMMk7BNosF0YzzD2BQbIJXPQNykF/view
Hi, @eric0815 and thanks for reaching out. Are you able to send a different link? That page doesn't load properly for me, and the buttons to download the file are in an Asian language I can't read so I don't know which of them to click to download it.
I'll take a look, but if even WinRar thinks it's corrupted, there's not much I'm going to be able to do. What are you hoping for, partial extraction of the archive? Did WinRar extract all files successfully and only give an error when you went to repair it?
Hi,@abbeycode,Thanks for your answer.I uploaded the rar file to google drive and updated the link address. Yes, Winrar thinks it's corrupted if I try to repair it.But If I just unrar it,WinRAR can unrar all files successfully.
So,Can UnrarKit ignore this part of archive check and just try to unrar the files in the archive directly?
Thanks.
The new archive only contains the UnrarKit README.md file - is that what you intended?
Hi,@abbeycode,YES.Only one README file.Thanks.
Hi,@abbeycode,There is one README file in the demo rar file.I can not unarchive the file with UnrarKit like winrar does.Any suggestions would be appreciated.Thanks.