About 218,000 results
Open links in new tab
  1. To Compress a big file in a ZIP with Java - Stack Overflow

    Mar 14, 2010 · Sounds like a bad idea if you have such large objects in your response. Consider returning an URL instead from where the zip-file can be retreived. Plain servlets allow for a byte …

  2. What's a good compression library for Java? - Stack Overflow

    Sep 24, 2008 · Depending on the server, it probably has support for compression (especially with deflate/gzip). The problem then becomes on the client. If the client is a browser it probably already …

  3. gzip - Java Compress Large File - Stack Overflow

    Feb 10, 2016 · Java has ZIP support as part of the standard library (see other comment), but you will get MUCH better compression using bzip, or tar.gz. Apache Compress is the easiest way to work with …

  4. Compressing large files using blocks in Java - Stack Overflow

    Feb 7, 2014 · I am compressing files of over 2GB in Java using a consecutive application of two compression algorithms; one LZ based and one Huffman-based. (This is similar to DEFLATE). Since …

  5. Implementing in-memory compression for objects in Java

    Feb 21, 2015 · The reason it is smaller is it just does the compression whereas the alternatives add file format extensions like CRC checks and headers. If size is important, you might like to have a simple …

  6. How can I compress images using java? - Stack Overflow

    This is only for one image but I am sure I will have lots of images for compression. so how can I compress image by passing bytes or percentage as a parameter or using anyother calculations in …

  7. java - Using GZIP compression with Spring Boot/MVC/JavaConfig with ...

    123 We use Spring Boot/MVC with annotation-based java-config for series of RESTful services and we want to selectively enable HTTP GZIP stream compression on some API responses.

  8. How can I reduce the size of a PDF file in Java using PDFBox or other ...

    Sep 30, 2024 · I'm working on a Java project where I need to reduce the file size of a PDF. I’m using PDFBox /itextPdf to handle PDF files, but I’m not sure how to optimize or compress the PDF to …

  9. java - How to zip a file while writing to it? - Stack Overflow

    Nov 29, 2010 · Does anyone know of a way to zip a stream that you are writing to? I'm trying to avoid writing the file to the disk, and was wondering if I can just compress data as you are writing it to the …

  10. compression - What is a good Java library to zip/unzip files? - Stack ...

    Why can't I have a simple API that looks like this Zipper.unzip(InputStream zipFile, File targetDirectory, String password = null) and Zipper.zip(File targetDirectory, String password = null) that just works? It …