I have a problem recompressing some .rpt files (SM3DAS): in most cases everything works correctly, but for some files appears "Error: the compressed data is bigger than the original one...", even using "-r -r" (I don't need same size, only same compression).
The attached file is affected by this problem (all are .rpt).
Thanks for helping.
Offzip "Error: the compressed data is bigger than the original one"
-
- Posts: 39
- Joined: Mon Mar 02, 2020 3:32 am
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Offzip "Error: the compressed data is bigger than the original one"
Since the whole BIN file is compressed without additional data before and after the compressed data, you can just compress it from scratch by using a tool like packzip or a quickbms script like the following:
(Please note that by default packzip puts the compressed data in the output file so, if the file already exists, you probably want to use the -c option for "recreating" it)
Code: Select all
comtype zlib_compress
get SIZE asize
clog "new.bin" 0 SIZE SIZE
(Please note that by default packzip puts the compressed data in the output file so, if the file already exists, you probably want to use the -c option for "recreating" it)
-
- Posts: 39
- Joined: Mon Mar 02, 2020 3:32 am
Re: Offzip "Error: the compressed data is bigger than the original one"
Thank you very much!
-
- Posts: 12
- Joined: Fri Nov 30, 2018 8:46 pm
Re: Offzip "Error: the compressed data is bigger than the original one"
Hi i got same issue for a file !
All was ok for the uncompression deflate , i tested this :
offzip.exe -a -z -15 -1 input_file output_folder
result was output.dat file inside output folder, it was what i wanna get
by testing same with the -r for recompression, i got " Error: the compressed data is bigger than the original one"
command was
offzip.exe -a -r -z -15 -1 input_file output_folder
For the test, i just tried to recompress the same file, without changes !
Thanks you
All was ok for the uncompression deflate , i tested this :
offzip.exe -a -z -15 -1 input_file output_folder
result was output.dat file inside output folder, it was what i wanna get
by testing same with the -r for recompression, i got " Error: the compressed data is bigger than the original one"
command was
offzip.exe -a -r -z -15 -1 input_file output_folder
For the test, i just tried to recompress the same file, without changes !
Thanks you