Link
Skip to main content

Compress Data in Java with CCITT

The JDeli Java image compression library includes a filter option to compress data in Java to reduce its size. The compress filter is written in 100% Java with no dependencies.

Key information:

  • 100% Java solution. No dlls or dependencies on native code
  • can be done in memory or on disk

How to compress data in Java :

final CCITTOptions options = new CCITTFilterOptions();
options.setMode(FilterOptions.FilterMode.COMPRESS);
JDeli.filter(final byte[] raw_data, final CCITTFilterOptions options);

or

final CCITTOptions options = new CCITTFilterOptions();
options.setMode(FilterOptions.FilterMode.COMPRESS);
JDeli.filter(final InputStream inputStream, final CCITTFilterOptions options, final OutputStream outputStream);

FilterOptions allows setting of any supported Filter Options


Get started with JDeli in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about JDeli

Start Your Free Trial