2,419 questions
0
votes
0
answers
34
views
Bluebeam .BTX toolchest syntax
Anyone know a bit on .btx (Bluebeam toolchest) file syntax ?
I noticed it's XML based and the values are zlib encoded.
So i'd like to understand how the syntax is built
0
votes
1
answer
59
views
CMake : Resolving Internal 3rd-Party Libs Within Project
I'm trying to use libzip (https://libzip.org/) within my project, which itself depends on zlib (https://www.zlib.net/). This is on a Windows system, so I can't rely on system packages.
I can add zlib ...
3
votes
1
answer
161
views
Zlib deflate uncompress data error not able to inflate
Plese guide me, what I am doing wrong. I am not able to coming up with working solution.
I am trying to inflate PDF - deflate stream with Zlib. The below code written by me.
int main(){
char* ...
0
votes
0
answers
94
views
zlib dependency error on Fedora installing yesod-bin with stack
I've been trying to install the yesod framework following the suggested steps:
stack new my-project yesodweb/sqlite
cd my-project
stack install yesod-bin --install-ghc
However I get the compilation ...
0
votes
0
answers
117
views
PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.11, library: 1.3.1)
I've been facing an issue recently when using custom matplotlib stylesheets on my Linux PC. Say I have a custom stylesheet named madeup.mplstyle. The style has run perfectly on a Windows kernel and ...
2
votes
1
answer
302
views
How can I use Discord.js Client with Next.js v15 Server Actions?
I am currently just trying to create a server action in my next.js app to use a Discord Bot of my own making to get member profile pictures. I have the following server action coded in my application
'...
1
vote
1
answer
31
views
Why are the colors mixed up in this screenshot taken using Robot.js?
I'm using Robot.js to take screenshots (I don't really want to install any other heavy packages over 1 mb, but I'm already using Robot.js and no, Jimp isn't what I'm looking for). Since the ...
0
votes
0
answers
937
views
Argument of type 'Buffer' is not assignable to parameter of type 'InputType'
My project has been using zlib for its decompression methods for a long time. Suddenly while trying to update packages its throwing a TypeError in the following code:
Argument of type 'Buffer' is not ...
1
vote
1
answer
96
views
mpicc: command not found while installing hdf5 library
Trying to install hdf5-1.14.5 with zlib-1.3.1 but I cant configure it.
I have CC=mpicc and FC=mpif90 with gcc wrapper. Both the compilers can compile a run simple mpi programs.
mpicc -version
gcc (...
1
vote
1
answer
46
views
What is the meaning of the 3rd byte generated using zlib deflate?
What is the meaning of the 3rd byte generated using zlib deflate? (NO_FLUSH and Z_DEFAULT_COMPRESSION are being used in case that makes a difference).
The reason I'm asking is that I'm trying to ...
0
votes
1
answer
60
views
How to Match Compression Format for Specific Compressed Data?
I'm trying to decompress and recompress a specific piece of compressed data in Python to reproduce the original compressed output. However, I can't achieve a match with zlib, and I'm unsure what ...
0
votes
0
answers
36
views
How to optimize (in Python) the compression of TIFF bitmaps before inserting them in a PDF? Photoshop uses Predictor 2
I have written a tool in Python that reads TIFF images in CMYK or monochrome (gray levels) and assembles them into a PDF. It's using a nice module (mPdf.py) from Didier Stevens and the zlib library to ...
1
vote
0
answers
73
views
How do I use MZ_ZIP64_AUTO in Minizip (on Zlib)?
I am using minizip version 3.0.0.8 and zlib 1.2.
I have the functionality to export zip files in quite a bit of software. It saves all files in the archive with Zip64 characteristics. The exported ...
0
votes
1
answer
48
views
how to inflate zlib sub-chunk not having previous chunks but having z_stream which deflated it?
I deflate data and send output chunks into server. In case of network error I need to start fresh zlib stream (the server expects this), but because I still hold last deflated chunk (without origin ...
0
votes
1
answer
44
views
node https & zlib package: can't parse gzip'ed response from stackoverflow.com
gunzip ing the response doesn't work (I definitely get a gzip response), the headers aren't right, I really don't get why. Here's the demo code below:
const https = require('https')
const zlib = ...
0
votes
1
answer
80
views
How to correctly set versionMadeBy field for zipOpenNewFileInZip4 in minizip (Zlib library)
I need my application to properly zip files in Windows, UNIX, Mac etc. Earlier I was on Zlib 1.2.3 and now migrating to 1.3.1. I have API calls to zipOpenNewFileInZip4 which has a new field ...
0
votes
2
answers
96
views
Cannot decompress zlib compressed file using NodeJS
I have a 22 byte payload that is compressed with ZLIB. I can decompress the file just fine in Java to the original 14 byte String using this snippet:
public static void main(String[] args) throws ...
0
votes
1
answer
330
views
ZLIB: How Should I Inflate Deflated Data of Unknown Length
I am inflating some legacy files with zlib. Unfortunately, the files are comprised of 3 parts:
Part 1: Uncompressed Data followed by
Part 2: zlib deflated data, which begins with 0x789C followed by
...
2
votes
0
answers
147
views
Node zlib: throwing incorrect header check while inflating or unzipping
I have a varbinary type column jsonBin in db. I want to store json (string) which is compressed using zlib.
zlib.gzipSync(data) or zlib.deflateSync(data) returns buffer object.
If I use base64 ...
6
votes
0
answers
422
views
Python venv creation fails due to ensurepip and zlib issues
I'm unable to create a Python virtual environment via venv in which I can install dependencies via pip. These issues occur on a clean install of Ubuntu 24.04 LTS.
I specifically want to use Python's ...
1
vote
2
answers
207
views
Delphi Zlib: how to compress with windowbits -15 (raw deflate)
I need to compress data in a "raw deflate" manner, with Windowbits set to -15. Files containing compressed data have been compressed that way by an external party, which gets decompressed ...
0
votes
1
answer
149
views
What is avail_out minimum possible value for inflate in zlib z_stream?
I checked the zlib example at https://zlib.net/zpipe.c and I've seen that chunk size of 16384 bytes is used. But what is minimal possible chunk size for output inflate data could be used? Can I use ...
0
votes
0
answers
112
views
Build static zlib for Android
I'm using the following script. It should produce static lib. However, it produces both libz.a and libz.so.
(I have -DBUILD_SHARED_LIBS=OFF specified.)
How can I set it to produce static libs only?
#!/...
0
votes
0
answers
209
views
zlib inflate failing with errors like invalid distance too far back/ invalid block type/ invalid stored block lengths
Background: I am trying to deflate an in-memory buffer into a file and inflate it later for debugging.
In this case when the logs are flowing at a faster rate (about every millisecond) I see failures ...
0
votes
1
answer
380
views
C++ how to unzip file
I found this code to unzip files:
#include <zlib.h>
#define CHUNK_SIZE 16384 // 16 KB
bool unzipFile(const char* zipFileName, const char* extractFileName) {
// Open the input file (...