I have a java method that receives binary data from a post form, I’m trying to save all incoming data compressed(7zip -t zip -mx9 ...
).
However, I found that if the uploaded data is, for example, a zip archive in .gz format, repeated compression will make it bigger in size.
Is there any way to tell if it is necessary to compress a file?