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
-1
votes
1 answer

using puff.c with deflate .zip

I have a little project with an STM32 where I send a file via UART and store it at a defined address in the flash memory. This works. Now I want to modify this and store a compressed file in the flash and uncompress it to a defined address somewhere…
-1
votes
1 answer

Java 7 Deflating Files

I have a piece of code which uses the deflate algorithm to compress a file: public static File compressOld(File rawFile) throws IOException { File compressed = new File(rawFile.getCanonicalPath().split("\\.")[0] + "_compressed." +…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
-1
votes
1 answer

How to decompress data from a memory stream in C#

I am trying to decompress a compressed base64 encoded string but have no idea how to do so. It is not a gzip and I am trying to decompress it without having to write to a file.
Scar
  • 725
  • 2
  • 7
  • 28
-1
votes
2 answers

Deflate and Inflate Java String in Memory Zip Exception Error

I am writing code to deflate and inflate a string in base 64 encode but I am getting the following error: Exception in thread "main" java.util.zip.ZipException: incorrect header check at…
Dalton Heiland
  • 117
  • 2
  • 7
-1
votes
1 answer

Parsing zlib header

I spent a few days reading zlib (and gzip and deflate) RFC and I can say they are kind of rubbish. Quite some details are missing, so I'm opening this question. I'm trying to parse a zlib data and I need to know some details about the header. First…
alexandernst
  • 14,352
  • 22
  • 97
  • 197
-1
votes
1 answer

.NET deflating a file with both compressed and uncompressed data

In .NET, I have a file that has a 1024-byte block of (uncompressed) header information, followed by a 1MB block of data that is compressed with Deflate. How do I decompress just the data block? I tried opening the file as a FileStream, skipping the…
Don Del Grande
  • 411
  • 6
  • 20
-1
votes
2 answers

Why is the zlib inflate function is not working in correct order in node.js?

I am new to Stackoverflow. I am now working on a node.js program. The input is a data stream containing few blocks of data (also zipped by DEFLATE algorithm) concatenated together. My goal is use INFLATE to restore the data blocks and put them into…
Frederick Li
  • 558
  • 6
  • 5
-1
votes
1 answer

Convert multiple .deflate files into one gzip file in ubuntu

I ran one hadoop job which has generated multiple .deflate files. Now these files are stored on S3. So, i cannot run hadoop fs -text /somepath command it will take the hdfs path. Now, i want to convert multiple files stored on s3 in .deflate format…
Naresh
  • 5,073
  • 12
  • 67
  • 124
-1
votes
1 answer

How to decompress using Inflater in Java?

I am very new to Java. I have some codes to compress like below: public void compress(OutputStream out) throws IOException { Deflater deflater = new Deflater(1); DeflaterOutputStream zOut = new DeflaterOutputStream(out, deflater, 1024); …
Joshua Son
  • 1,839
  • 6
  • 31
  • 51
-1
votes
1 answer

Zlib inflate error

I am trying to save compressed strings to a file and load them later for use in the game. I kept getting "in 'finish': buffer error" errors when loading the data back up for use. I came up with this: require "zlib" def deflate(string) …
user1796160
  • 477
  • 2
  • 5
  • 13
-1
votes
1 answer

Why is compression with mod_deflate.c neccessary?

Is it required? Optional? Does it benefit anything more than performance speed? # created .htaccess file in the web root: SetOutputFilter DEFLATE php_flag magic_quotes_gpc off RewriteEngine on RewriteRule…
Ivor Scott
  • 159
  • 3
  • 12
-2
votes
1 answer

Decompress string compressed by php's gzcompress()

So I have data compressed in php in this way: $compressed = gzcompress($pairs, 9); When I try to decompress obtained data with rust in this way: let mut d = flate2::read::GzDecoder::new(compressed_pairs.as_bytes()); let mut s =…
user14020773
-2
votes
1 answer

gzip, deflate decompress php

I have an encoded string, how do I decode it eNpTNXdSNTJKLSrKLwLSqsaOJUWlqapGzkBOSmpxMlQQSKYlZuakpqgaGSSWlmTkF2VWJZZk5ueBpM1dALkhFLk= gzdecode, gzinflate, zlib_decode output false on this site it stands for as it should be
-2
votes
1 answer

How to Merge huffman and lz77?

I have huffman and lz77 codes, but I need any way to merge this algorithms to make deflate How i can do this? I have to write it manually without using libraries.
-2
votes
1 answer

Porting Java's DEFLATE algorithm to C#

We have a requirement to decompress some data created by a Java system using the DEFLATE algorithm. This we have no control over. While we don't know the exact variant, we are able to decompress data sent to us using the following Java code: …
Robbie Dee
  • 1,939
  • 16
  • 43
1 2 3
39
40