Global web icon
stackoverflow.com
https://stackoverflow.com/questions/1770776/to-com…
To Compress a big file in a ZIP with Java - Stack Overflow
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-based streaming response.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/21609932/compr…
Compressing large files using blocks in Java - Stack Overflow
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 2GB is too large t...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/127001/whats-a…
What's a good compression library for Java? - Stack Overflow
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 supports it. If your client is a webservices client or an http client check the documentation for that package to see if it is supported.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/5934495/implem…
Implementing in-memory compression for objects in Java
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 serialization of your own. This is because ObjectOutputStream has a significant overhead making small objects much larger.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/44565500/how-c…
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 java (by using API or image-processing Tool) so,that I can get compressed version of image as suggested by google. Thanks in advance.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/14354712/how-t…
How to reduce PDF file size programmatically in Java?
0 You can use ghostscript, invoking the exe with specific parameters for print your pdf with the ghostscript's pdfwriter (example: sDEVICE=pdfwrite -sOutputFile=myfile.pdf). There are several accepted parameters, for compression or quality levels, etc. It may result and optimized and smaller file.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/5481487/how-to…
How to use LZMA SDK to compress/decompress in Java
The guys that invented the XZ format build a pure java implementation of the XZ archive compression / extraction algorithms The XZ file format is designed to store 1 file only. Thus you need to zip/tar the source folder (s) into a single uncompressed file first. Using the java library is as easy as this:
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/37019731/pdf-c…
java - PDF Compression Techniques - Stack Overflow
I am trying to compress PDF document in Java. The original file size is 1.5-2 MB and we need to bring it down to less than 1 MB. I tried using iText compression on it, however the results are not ...
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/8782329/java-c…
Java - Calculate File Compression - Stack Overflow
The only thing you can do is have an approximate ratio by file extension based on statistics gathered from a relative large sample by doing actual compression and measuring.
Global web icon
stackoverflow.com
https://stackoverflow.com/questions/21410317/using…
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.