Can someone point me to a Java library that actually compresses files, with a notable size difference? [closed]

StackOverflow https://stackoverflow.com/questions/22845492

  •  27-06-2023
  •  | 
  •  

i have searched for different compression algorithms for java, and i finally set my mind on the the deflate algorithm that is already included in the java SDK.

When i started it worked fine with text files, but it didn't do much compression size wise with other type of files like (JPG,etc.), also there is no much difference when i change the compression level.

What i need is a library that will compress all files with a notable file size decrease.

Is what i am looking for even exists??

Thanks in advance :)

有帮助吗?

解决方案

You not going to get much compression out of JPG, MP3, AVI or any other binary files, they kinda do that for you already. You can however get good compression results out of text files like JS, CSS, HTML, etc.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top