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

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Reading zlib compressed data from PDF with C# [closed]

I'm reading zlib compressed data from PDF with C#. Data is stored between stream - endstream, which is extracted with regex. What encoding should use, because I cannot get right bytes compared to seen ...
RAh's user avatar
  • 11
0 votes
1 answer
24 views

Sorbet won't allow Zlib::GzipReader as a parameter to a method

This Ruby code with a Sorbet signature: sig { params(source: T.any(String, Zlib::GzipReader)).returns(T::Boolean) } def file?(source) source.is_a?(String) && File.exist?(source.to_s) end ...
Richard Nienaber's user avatar
1 vote
1 answer
68 views

zlib: uncompressing large file leads to "invalid code lengths set " error

I am trying to use zlib to detect the end of a compressed gz data stream. I do not need the uncompressed contents. My goal to get pointers to the beginning and end of a stream. My code works on small ...
ahauras's user avatar
  • 13
0 votes
1 answer
43 views

PHP: create gz stream from plain file

I want to create a read stream that previously is gzencoded from a plain text. The google cloud storage library has an upload function and you can pass a StreamInterface as parameter (Bucket::upload ...
JoniJnm's user avatar
  • 720
1 vote
2 answers
83 views

I can't install pillow in my venv with pip install Pillow

I can't install pillow in my venv with pip install Pillow. This is the error message that I got. Building wheel for Pillow (pyproject.toml) ... error error: subprocess-exited-with-error × ...
Илиян Гълъбов's user avatar
0 votes
0 answers
21 views

CMake (Windows): automatically download, build and link with libzippp when running `cmake -B`

I'm trying to integrate libzippp (a c++ wrapper around libzip) into my project over at https://github.com/gwdevhub/gMod/tree/dev. libzippp requires libzip to be installed and available, libzip in turn ...
DubbleClick's user avatar
0 votes
0 answers
5 views

Getting an error while trying to install gat package in tensor

I am getting the following error during pip install gat; "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /...
Sagnik Ghatak's user avatar
0 votes
0 answers
21 views

decompress buffer data in react

I have a backend api that reads from a file which contains compressed data and return a buffer from that data. I want to decompress it in React and convert it to normal version. I used pako for that ...
Numby's user avatar
  • 11
0 votes
0 answers
46 views

Building minizip for 32-bit linux

I have an application that uses minizip for manipulating .zip files. It currently uses a very old version of minizip (pre-64bit port) and I am upleveling to the latest version (as shipped with zlib 1....
David Mooney's user avatar
0 votes
1 answer
85 views

Uncaught Error: incorrect header check in zlib in node.js [duplicate]

I am making an Electron app that downloads a zip file using fetch and fs, and then extracts it to a folder using zlib. However, I keep getting this error: Uncaught Error: incorrect header check at ...
idk's user avatar
  • 9
0 votes
0 answers
35 views

Use cmake FetchContent_Declare dependend external libraries

curretnly i am working on a Qt6-based project in which i would like to use the QuaZip-Library. For this, i know that i first need to get zlib, so i used FetchContent_Declare to get both into my cmake ...
Niklas F's user avatar
0 votes
1 answer
84 views

create archive in memory c++

I create an archive in memory and for the test I write it to disk to check if it is not corrupted, it opens without errors, and you can see the size of file.txt corresponds to the real one, but when I ...
ivan's user avatar
  • 1
0 votes
0 answers
25 views

The EISDIR 4068 error when trying to unzip file with Node.js zlib

When I try to unzip a zip file with my Node.js app using only built-in module zlib, I get the EISDIR 4068 error. Here is my code: const fs = require('fs'); const zlib = require('zlib'); const path = ...
stckvrw's user avatar
  • 1,691
0 votes
0 answers
37 views

The incorrect header check error when trying to unzip file with Node.js zlib

I try to unzip a zip file with Node.js app, but using only built-in module(s) e.g. zlib. I tried this code: const fs = require('fs'); const zlib = require('zlib'); const path = require('path'); const ...
stckvrw's user avatar
  • 1,691
0 votes
1 answer
32 views

Iterate through all possible code length distributions for canonical Huffman

Given the constraints imposed by Deflate (as used in zlib), I want to iterate through all possible code length distributions to find extreme cases which might break my assumptions. Deflate assigns the ...
sh1's user avatar
  • 4,476
1 vote
1 answer
93 views

zlib nodejs incorrect header check, why?

I have a problem which i can't understand. i'm trying to decompress a base64 string with zlib in javascript (nodejs) const {inflateSync} = require('zlib') const base64Data = "...
Edder Ariel Santos Castillo's user avatar
0 votes
1 answer
70 views

(Deflate) Is using a code of 284 for a distance pair with a length of 258 allowed in a Huffman compressed Deflate block?

I've been working on a program which aims to optimise deflate compressed files through trying possibly more efficient ways of representing the compressed data, and I recently found a file which uses ...
Ned Loynd's user avatar
0 votes
1 answer
97 views

import from zlib in Vite+React app gives an error

I'm trying to import gunzipSync from zlib** package on our react+vite app. However, I get following error message when importing anything from the package: ✘ [ERROR] Could not resolve "./...
Katzhuu's user avatar
  • 142
0 votes
0 answers
117 views

gnu gzip decompression significantly slower than zlib

GNU gzip and zlib are written by the same authors. However, I have noticed that the decompression speed between the two differs significantly. For example, decompressing linux.tar.gz with gnu gzip ...
techhara's user avatar
0 votes
1 answer
38 views

How to work correctly with zlib::inflate_stream::write?

I'm trying to understand the small details of working with zlib::inflate_stream::write. The code is more or less like that: zlib::z_params params; zlib::inflate_stream inflate; params.data_type = ...
Nadav Shragai's user avatar
0 votes
1 answer
46 views

apsw.SQLError: SQLError: no such vfs: zipvfs when trying to read encrypted SQLite files on Windows using python & apsw

I have a code that works under linux and I am trying to port it to windows. It uses apsw to work with encrypted SQLite files. flags = apsw.SQLITE_OPEN_READWRITE | apsw.SQLITE_OPEN_CREATE | apsw....
Matus Dubrava's user avatar
1 vote
3 answers
772 views

Xcode 15 compile error: Import of C++ module 'zlib' appears within extern "C" language linkage specification

I am trying to compile an existing project with Xcode 15 RC, the project uses some dependencies that internally use zlib. zlib.h is included using #ifdef __cplusplus extern "C" { #endif #...
displayname's user avatar
0 votes
1 answer
268 views

Want to install zlib to install pillow in python 3.8.10 (32-bit)

I want to install pillow in python 3.8.10 in my windows 7 32 bit. But when I write "pip install pillow" it gives: "The header and library files could not be found for zlib, a required ...
Kola0D246's user avatar
0 votes
1 answer
88 views

Attempt to speedup python unzip using isal_zlib fails

I have a long running series of scripts to unpack and analyse a very large dataset. Using pyinstruments I have found out that the ZipFile library is taking up a large amount of time. The files I'm ...
Oni's user avatar
  • 662
0 votes
0 answers
42 views

Running into errors compiling C script using zlib.h

I am currently experiencing issues while attempting to execute my encryptor/decryptor C script. This script was originally developed around a year ago. However, due to a computer reset, I lost several ...
Inosuke's user avatar
1 vote
1 answer
50 views

unresolved external symbol __imp____acrt_iob_func linking error

Trying to compile zlib 1.2.13 for windows. Cannot resolve linker error below, any help is appreciated! Creating library zdll.lib and object zdll.exp [2023-08-09T07:50:09.645Z] if exist zlib1.dll....
Marisol's user avatar
  • 139
1 vote
0 answers
127 views

How to decode FlateDecoded PDF stream in React-Native using zlib?

Dear StackOverflow Community, I am facing an issue with zlib while attempting to rewrite a PDF file. Specifically, I am trying to convert FlateDecoded data back to normal data, but I keep encountering ...
user22321562's user avatar
1 vote
0 answers
165 views

zlib.h not found while using make

I am trying to compile a program RabbitQCPlus, according to its github directions: https://github.com/RabbitBio/RabbitQCPlus It needs gcc and zlib which I have installed. (I work on a server, don't ...
kabirium's user avatar
1 vote
1 answer
65 views

usr/bin/ld: cannot find -lz when installing libBigWig

I am trying to install libBigWig, as it is as dependency of WiggleTools. libBigWig requires “zlib”, “bzip2” and “libcurl”, which I have them installed already. When I try to install libBigWig with the ...
Pramio-D's user avatar
1 vote
1 answer
180 views

CMake Error, on MacOS, Could not find ZLIB (missing: ZLIB_LIBRARY)

when configuring with cmake in order to compile azerothcore, I am receiving an CMake error where ZLIB can't be located. This is what I'm getting: Lees-MBP-2:build leeelliott$ export OPENSSL_ROOT_DIR=$(...
Lee Elliott's user avatar
1 vote
1 answer
146 views

How to fix undefined reference to deflate/inflate

I am trying to run code that use zlib on Debian by using this command gcc -o new double.c -lz -lm But I have these errors : how to fix the errors please? /usr/bin/ld: cannot find -lz collect2: error:...
lena's user avatar
  • 729
0 votes
1 answer
91 views

How to compile libpng with a non-system zlib

I'm having some trouble building libpng with a zlib newer than the system's zlib. My system has zlib 1.2.7 installed. But I want to build libpng against the latest zlib which I have built in a ...
Andreas's user avatar
  • 9,407
1 vote
1 answer
86 views

NodeJS: zlib.gzipSync gives different plaintext output on different platforms

The plaintext response from zlib.gzipSync gives different data when running the below code snippet on MacOS and Ubuntu. const zlib = require('zlib'); let hash = zlib.gzipSync(JSON.stringify({ "...
Surya's user avatar
  • 981
2 votes
1 answer
140 views

Decode BLE devices payload in Flutter

I am receiving data from my BLE device using the flutter_reactive_ble package. I have the following method : _broadcastCharacteristSubscription = _flutterReactiveBle ....
Tom3652's user avatar
  • 2,598
1 vote
0 answers
79 views

NodeJS - PGP encryption on top of gzip a text file

File is generated successfully but when trying to open file, it is in invalid gzip format after decryption. Shows error unsupported format and failing to decompress. zlib.gzip("Hello World", ...
Hello World's user avatar
1 vote
2 answers
199 views

Why does unzip ignore my zip64 end of central directory record?

My goal is create a zip64 supported archive in c++ with only zlib. The current implementation works without zip64, but when I assign the zip64 EOCD and EOCL they are unused by unzip and 7zip. Though I ...
user7934593's user avatar
0 votes
0 answers
161 views

Mediapipe with GPU support for tensorflow ZLIB_VERNUM != PNG_ZLIB_VERNUM

Objective I want to install Mediapipe with GPU support for TensorFlow as explained in the official tutorial Steps to reproduce What I have done is: $ git clone --depth 1 https://github.com/google/...
Bilal's user avatar
  • 3,313
1 vote
1 answer
791 views

Encountering "error invalid compressed data to inflate" from unzip when creating a zip archive with zlib in c++

My goal is to create a zip archive from scratch using only zlib. I got pretty far, I can create an archive when I do not compress the data and set the appropriate header flags. But when I add ...
user7934593's user avatar
1 vote
2 answers
297 views

Using iOS compression library to decompress zlib compressed data keeps returning NSCocoaErrorDomain code=5377 [duplicate]

I'm writing an iOS app that wants to read in a zlib compressed data file and uncompress it. This should be easy using the builtin compression library and zlib is one of the supported compression ...
rdk's user avatar
  • 91
0 votes
1 answer
130 views

Boost iostreams linking errors regarding zlib

Windows 10 64bit, using compiler clang-cl and CMake. I've compiled boost like so: 1 Downloaded zlib source code to C:/zlib-1.2.12 2 In file boost_root/project_config.jam I added using zlib : 1.2.12 : &...
user3007875's user avatar
0 votes
1 answer
118 views

LoadRunner 12.60 - How can I do gzip compression on raw text and save it into another variable/ parameter?

Looking for some help with compression around LoadRunner requests. Our application from one system sends a JSON payload to the server. This JSON Payload has several key-value pairs in raw text (...
Lucky's user avatar
  • 3
1 vote
0 answers
159 views

NextJS app with apollo switch from nodejs16 to nodejs18/20 triggers Zlib error: Incorrect header check error

The following code used to work in NodeJS 16 (16.20.0 tested), but when trying to use it with NodeJS 18 (or the latest NodeJS 20) there's the following error: Error: [http] [Network error]: TypeError: ...
iamsaitam's user avatar
1 vote
1 answer
60 views

Python's zlib doesn't work on CommonCrawl file

I was trying to unzip a file using Python's zlib and it doesn't seem to work. The file is 100MB from Common Crawl and I downloaded it as wet.gz. When I unzip it on the terminal with gunzip, everything ...
157 239n's user avatar
  • 359
1 vote
1 answer
291 views

Writing ZRLE Encoding for VNC Server

I've been writing a VNC Server using rust as an academic exercise. I've successfully implemented RAW and Hextile encoding. I've laid out blocks for ZLib are ZRLE. But unfortunately, ZLIB compression ...
Atheesh Thirumalairajan's user avatar
0 votes
0 answers
40 views

Uncaught ReferenceError: process is not defined! WEBPACK AND BABEL ERROR

my MERN project has some errors ("zlib" Module not found etc..), because of that, i added some codes in module.exports={ resolve:{....}} on my webpack.config.js file in my react node moduse ...
Hanife Yolat's user avatar
0 votes
3 answers
126 views

Maximum size of compressed data using Python's zlib

I'm writing a Python library that makes ZIP files in a streaming way. If the uncompressed or compressed data of a member of the zip is 4GiB or bigger, then it has to use a particular extension to the ...
Michal Charemza's user avatar
3 votes
1 answer
161 views

zlib difference in size for level=0 between Python 3.9 and 3.10

In this code that uses zlib to encode some data, but with level=0 so it's not actually compressed: import zlib print('zlib.ZLIB_VERSION', zlib.ZLIB_VERSION) total = 0 print('Total 1', total) ...
Michal Charemza's user avatar
0 votes
1 answer
48 views

How to incorporate zlibwapi into a ruby project on Windows server?

I've inherited a ruby project on a Windows 10 server that compresses and encrypts files to backup using zlib. Some of the larger files are returning the data error "string size too big". I ...
s3rvant's user avatar
0 votes
1 answer
237 views

Cross-compiling zlib for Android

I am trying to cross-compile zlib for Android (the library will ultimately be used to provide an OpenSSH binary). I got to the point where I was able to cross-compile the library for the target ...
user149408's user avatar
  • 5,463
0 votes
1 answer
68 views

Bitbucket pipelines keep failing on ZLIB install/discovery for php image

I have bitbucket pipelines failing all of a sudden due to issues with the php zip library (yaml file hasn't been touched in years and builds were successful a few weeks ago) I've tried multiple ...
Geoff_S's user avatar
  • 4,977

1
2 3 4 5
48