Questions tagged [deflate]

deflate is a lossless data compression format, and also refers to implementations that compress to the deflate format. The deflate format was created by Phil Katz of PKWare for the PKZip (.zip) archive format. Public domain software provides deflate and inflate functionality in the gzip utility and the zlib library.

Documentation of the deflate format may be found in RFC-1951

588 questions
0
votes
1 answer

C++ zilib deflate/inflate and ztream parameters

After understood (with some help...) how work the compress and uncompress functions of zlib library, I'm now trying to understand how deflate and inflate work. As far as i understand, compress is used in a single call, whereas deflate can be called…
arthurmchr
  • 500
  • 2
  • 8
  • 27
0
votes
1 answer

Rack::Deflater and gzip in rails app

I added use Rack::Deflater to config.ru in an attempt to serve gzipped css and js. but when I load the page I still see that css and js are served and not the css.gz should I see css.gz or js.gz? or did I miss something
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
1 answer

Java- concatenating compressed data with Deflater or GZIPOutputStream

We have a bunch of threads that take a block of data, compress this data and then eventually concatenate them into one large byte array. If anyone can expand on this idea or recommend another method, that'd be awesome. I've currently got two methods…
user1777900
  • 975
  • 3
  • 13
  • 27
0
votes
0 answers

Java CRC error when using a dictionary with GZIP

This is honestly frustrating because I think I know the cause but at the same time I cannot pinpoint when it is happening in my code. Basically, for this assignment, we're supposed to read in an input stream, split it into 128 byte blocks, and…
user1777900
  • 975
  • 3
  • 13
  • 27
0
votes
2 answers

Java attain >50% compression ratio

I am trying to compress the pdf files(sometimes images). I need a compressor in java which will help me compress my files. I need the size to be less than half the size of the original document. I tried deflator given in java apis. But it was not…
Droidme
  • 1,223
  • 6
  • 25
  • 45
0
votes
1 answer

checking if a web page has compression enabled with php

I want to check if a web page has gzip/deflate compression enabled with php. Probably with get_headers I won`t make it, so a anydvices, or any bit of code anywhere to check this ( couldn't find anything on the subject ). Probably I need to find in…
Andrei Stanca
  • 908
  • 2
  • 11
  • 26
0
votes
1 answer

How do i DEFLATE properly? (both .NET and MONO gets it wrong)

I can't comprehend. It looks correct. Windows gets me 21008 80373 0.2613813 80372 80372 1 Deflate on .NET isn't good (it shouldnt be 26%) but more importantly the decompressed size is 1 off. Looking at the file (its html) its missing the last…
user34537
0
votes
1 answer

Checking Validity of DEFLATED data

I have some data that has been passed through the DEFLATE algorithm. If I run the command perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)' < deflated_data.gz The correct output is printed. However, if I use the following code on the same…
cytinus
  • 5,467
  • 8
  • 36
  • 47
0
votes
0 answers

enable compression on a server

I'm running the page speed test on google and it is telling me that i need to enable compression on my server. Can you please provide me information on how to enable compression on my server? Thanks.
Dani
  • 5,828
  • 2
  • 17
  • 21
0
votes
2 answers

How can I compress my .php site with zlib and zpipe.c

I am having a problem compressing my website. My host (www.one.com) does not support gzip, so I contacted them regarding any other way to compress my site. First I talked to a supporter that told me that it could not be done, since their server is…
-1
votes
3 answers

Compression Gzip/7Zip

When I calculate the entropy values of files compressed with Gzip, PKZIP, 7ZIP and Winrar, I find that the compression rate of Gzip is higher than the others. The entropy value is higher (indicating less redundancy) and the file size is smaller.…
-1
votes
1 answer

Image Conversion From Base64 - FLOATLE-Stream

A Blood Analyzer Is Sending Base64 Data To Retrieve Image As Below, Can Someone explain the steps , how to get image out of it. I am coding with…
-1
votes
1 answer

What's wrong with my PNG IDAT CHUNK datas?

i'm trying for learning purpose to create manually a png file from with OpenGL All other CHUNKS are okk (IHDR, pHY, IEND). firstly, I read pixels by Opengl : int s_width = glutGet(GLUT_SCREEN_WIDTH), s_height = glutGet(GLUT_SCREEN_HEIGHT); …
-1
votes
1 answer

Why am I getting GZip compression size of a string more than the original size after compression when using SharpZipLib in C#

My string is a Json file (test.json) with the below content { "objectId": "bbad4cc8-bce8-438e-8683-3e603d746dee", "timestamp": "2021-04-28T14:02:42.247Z", "variable": "temperatureArray", "model": "abc.abcdefg.abcdef", "quality": 5, …
KBNanda
  • 595
  • 1
  • 8
  • 25
-1
votes
1 answer

How can a read csv.deflate hdfs files in a dask datfarame?

I am trying to read csv.deflate files from hdfs path and put them in dask dataframe. I tried read_csv and I am getting "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 1: invalid start byte" error. Then, I set engine='python'…