Thursday, June 24, 2010

Manually convert ZIP to GZ

Don't want to use programs that will convert ZIP to GZ by recompressing the whole archive? Doing this may result in file being larger than ZIP! Maybe you just want compresion data to stay intact? This guide is for you!

Pre:
1. Run deflopt on the archive before conversion to make sure it doesn't contain any comments in order to use guide below.

In Xvi32 do:
1. Make sure ZIP contains only one file that is NOT in directory.
2. Open it with Xvi32 and DEL till you reach filename
3. Now make sure that 'Overwrite' is OFF in 'Tools' menu.
4. Go to Address 0 and click on hex view [left window]
5. Do A or B
A1. Type: 1F 8B 08 08 00 00 00 00 02 00
A2. Now in hex view go to next character after filename and type 00
or
B1. Type: 1F 8B 08 00 00 00 00 00 02 00
B2. Delete filename with extension
6. Go to end of file [last address]
7. Look carefully, you should notice two "PK" strings.
8. Navigate to the one that is earlier [NOT THE ONE THAT IS ALMOST AT THE END]
9. Click on the P from "PK" and press DELETE key 16 times.
10. Press right arrow 4 times
11. Press delete 4 times
12. Press right arrow 4 times
13. Delete every character from this position to the end of file
14. Change extension to GZ and vua la. You have GZ file!

If you did everything right, you should be able to decompress it without any problems.

No comments: