Questions tagged [zlib]

zlib is a library used for data compression. Also a crucial component of many software platforms including Linux, Mac OS X, and the iOS

zlib is a library (current version: 1.2.8, released April 28, 2013) that is very widely used for doing data compression. It is open source software written in C, and is unencumbered by patents. It supports three principal compression formats:

  • format Raw compressed data
  • format data (essentially just raw data with a small header)
  • format data (the raw data with a considerably more sophisticated header)

Documentation may be found in RFC-1950 (zlib), RFC-1951 (deflate), and RFC-1952 (gzip).

The zlib library was created by Jean-loup Gailly and Mark Adler.

2362 questions
0
votes
0 answers

Can't install zlib for python3.8

I am using python3.8 for a project, and I want to install all dependencies from pipfile. I got: [pipenv.exceptions.InstallError]: ModuleNotFoundError: No module named 'zlib' I tried: sudo apt install zlib1g sudo apt install zlib1g-dev pipenv…
pavso
  • 21
  • 4
0
votes
1 answer

zlib.error: Error -3 while decompressing data: too many length or distance symbols

Encountering this error for decompressing chunks of a file. I already decompressed successfully about 5 chunks of data. But there is just one range of data that doens't get decompressed. The header should be right. Header 78 9C This is only a chunk…
Aedn
  • 5
  • 2
0
votes
1 answer

decompressing string from database in python

I know this question will looks a bit unclear but I reached a level of frustration that drives me to ask this here.. I'm working with data from a POSTGRESQL database, and I get something like this: 2022-06-01 02:21:52.770293 2022-06-01…
bAN
  • 13,375
  • 16
  • 60
  • 93
0
votes
1 answer

Crosscompiling zlib for arm64/aarch64

I have to crosscompile zlib on my x86_64 Ubuntu system for Android arm64/aarch64 as I want to use it inside of an app. I got the zlib from the official website (version 1.2.13). Inside of the folder I execute CHOST=arm64 ./configure Which executes…
Flippy
  • 202
  • 3
  • 12
0
votes
1 answer

bundle install failing with error Zlib::DataError: invalid distance too far back

I am running bundle install command by going into my docker container and i am getting below error root@internal:/srv/deviceservice# bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as…
user2274074
  • 991
  • 2
  • 9
  • 25
0
votes
0 answers

GZipped JSON Readable uploading as null to S3

I have an incredibly large JSON file (several gigabytes – too large to fit in a JS string) that I'm trying to GZip and upload to S3 Currently I have the following code import { stringifyStream } from '@discoveryjs/json-ext'; import zlib from…
mjkaufer
  • 4,047
  • 5
  • 27
  • 55
0
votes
1 answer

Writing a compressed buffer to a gzip compatible file

I would like to compress a bunch of data in a buffer and write to a file such that it is gzip compatible. The reason for doing this is that I have multiple threads that can be compressing their own data in parallel and require a lock only when…
0
votes
0 answers

decompressing a gz file using zlib package in NodeJS

I am trying to decompress a .gz file using zlib, one of the inbuilt library of NodeJS. But while decompressing it is throwing incorrect header check error. I am using following code to decompress. import fs from 'fs'; import zlib from 'zlib'; const…
0
votes
1 answer

Error: ./node_modules/zlib/lib/zlib.js './zlib_bindings'

i finished upgrading to angular 11 and i have error in zlib library. I need this to convert a Ibuffer. When i uploading the project I get this error: Error: ./node_modules/zlib/lib/zlib.js Module not found: Error: Can't resolve './zlib_bindings' in…
0
votes
0 answers

zlib linker error on Windows when building libzippp, libzip and zlib via cmake

I'm having strange behavior when trying to build and link libzippp (and zlib) with a library project on Windows. The setup: There are two C++ cmake projects. The first is a library project called ExampleProject. ExampleProject depends on…
Monotomy
  • 554
  • 1
  • 6
  • 24
0
votes
0 answers

How to save the zlib.compress() result in a SQL Server varchar(MAX) column

I'm working with a database column that has already been implemented as a varchar(MAX). I would like to compress the string data we normally save in this field to save space and increase load times when working with the database. I used the zlib…
Andew
  • 321
  • 1
  • 9
0
votes
1 answer

Is there a way to decompress a gz in nodejs?

Having trouble finding a good way to decompress some input data I am being sent. I am using Next.js. Most tutorials I find use const zlib = require('zlib') or some such, but I find that syntax does not work for me. How do I import and use a library…
user93114
  • 61
  • 5
0
votes
0 answers

Options to be used with zlib module in Node.js to compress javascript files to be used with gzip encoding in browser

I am using Node.js as a HTTP server. I do not use the Express module. I want to compress a javascript file, send the resulting string after setting headers in the middleware, as in: zlib = require ("zlib"); res.setHeader('Content-Encoding',…
Sunny
  • 9,245
  • 10
  • 49
  • 79
0
votes
1 answer

zlib deflated samlrequest returns a "not deflated propper" by azure AD

i am using c++ zlib to deflate a XML string that gives the output:
0
votes
0 answers

swift does not find zlib on linux ubuntu 20.04

When running swift 5.5.3 or swift-5.7 under ubuntu 20.04, there are many warnings saying "zlib is not available." A simple c++ test program which links to zlib had no problem compiling and executing. The dpkg command found the library at…
efr
  • 1
1 2 3
99
100