

Repairing Corrupt ZIP Files – text/plain
source link: https://textslashplain.com/2015/12/15/repairing-corrupt-zip-files/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Repairing Corrupt ZIP Files
Fiddler’s default file format is the SAZ Format, which is just a ZIP file with a particular structure. Unfortunately, sometimes users’ SAZ files get corrupted due to failing disks or incomplete downloads, and when this happens, Fiddler can no longer open them.
Because Fiddler uses a standard ZIP file, surely a good ZIP reader will be able to read some data, right?
Windows Explorer’s primitive ZIP implementation can’t do anything useful:
Alas, not even 7-zip offers any help.
Okay, well, surely you can just use any of the many ZIP Repair tools to extract the data that isn’t corrupt from the file, right?
Alas, a few hour’s worth of research suggests that almost all of the public ZIP repair tools are terrible, unable to handle most forms of corruption. Some claim to work, but the resulting “repaired” archive remains unreadable:
Those tools that seem promising aren’t free, and require spending $30 or so before you can even determine whether they’ll get your data back.
What to do?
Write my own, of course. Most SAZ files are internally quite simple, and it shouldn’t be too hard to recover most data from archives that aren’t encrypted.
Fiddler 4.6.2 will offer a Repair Corrupt option on the dropdown in the Load dialog box:
When you choose this option, Fiddler will enter its archive recovery mode:
Notably, the recovery mode doesn’t especially care whether the recovered ZIP file is a SAZ file. If not, Fiddler will alert you that the file couldn’t be interpreted as a SAZ:
… but the repaired file on your desktop:
… should now be openable by your ZIP reader of choice:
I hope you find this new capability useful, both for Fiddler-generated files as well as any other corrupt ZIP or ZIP-based (e.g. docx, pptx) files you may encounter.
-Eric Lawrence
Posted byericlaw2015-12-15Posted intechTags:corruption, data, Fiddler, SAZ, zip
Published by ericlaw
Impatient optimist. Dad. Author/speaker. Created Fiddler & SlickRun. PM @ MSFT '01-'12, and '18-, presently working on Microsoft Edge. My words are my own. View more posts
Post navigation
One thought on “Repairing Corrupt ZIP Files”
-
Peter Richter
The year is 2030. Fiddler can now repair microwaves, cure diabetes, and exhibit strong AI. 20 years of continually adding new features (such as ZIP corruption recovery) have inadvertently constructed the most powerful tool in the observable universe. Debugging is now obsolete. Congratulations, Mr. Lawrence.
…Seriously, this is pretty cool. Thanks, and looking forward to the update!
Leave a Reply Cancel reply
Recommend
-
19
Uncompress Simple library to decompress files .zip, .rar, .cbz, .cbr in React Native ...
-
18
Thanks to the advantages the ZIP format provides, file compression is common, especially where large file sizes are involved. From time to time, you might download a ZIP file on your Android phone. To read its contents, you must...
-
18
Optimized Zip Format: Reading Zip Files Really QuicklyThis post is about minimizing amount of disk IO and CPU overhead when reading Zip files. I recently saw an article about a ne...
-
8
Tutorial How To Work With Zip Files in Node.js Node.jsJavaS...
-
15
Manipulate Your ZIP Files Efficiently – Real PythonGetting Started With ZIP Files ZIP files are a well-known and popular tool in today’s digital world. These files are fairly popular and widely used for cross-platfor...
-
70
Tech blog: Write plain text files 2022-03-02 I write almost everything important in my life: thoughts, plans, notes, diaries, correspondence, code, articles, and entire books...
-
5
Chromium Internals: PAK Files Web browsers are made up of much more than the native code (mostly compiled C++) that makes up their .exe and .dll files. A significant porti...
-
13
Repairing a corrupt Git repo using a clone 2016-02-24 Quite recently I managed to make myself a corrupt git repository due to a file system failure. See, git stores everything in content addressable blobs - the file na...
-
7
How to Repair Corrupt Windows Files With Windows Built-In Tools By Shan Abdul Published 3 days ago You do...
-
9
Re-encode FLAC files (recursively) for repairing encoding errors · GitHub Instantly share code, notes, and snippets. Re-en...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK