zlib

Zlib-compatible compression streams?

Are System.IO.Compression.GZipStream or System.IO.Compression.Deflate compatible with zlib compression? ...

How to inflate a file with zlib.NET?

I'm using the zlib.NET library to try and inflate files that are compressed by zlib (on a Linux box, perhaps). Here's what I'm doing: zlib.ZInputStream zinput = new zlib.ZInputStream(File.Open(path, FileMode.Open, FileAccess.Read)); while (stopByte != (data = zinput.ReadByte())) { // check data here } zinput.Close(); The data...

C++ cross-platform zlib simplifer-wrapper

I'm looking for a wrapper that distills zlib to: OpenZipFile() GetItemInfo(n) UnzipItem(n) // Bonus points for unzipping recursively if item n is a directory. I see a lot of wrappers around the zlib library on, say, codeproject.com but they are all platform-specific in order to provide the added platform-specific functionality of un...

Compression for a unique stream of data

I've got a large number of integer arrays. Each one has a few thousand integers in it, and each integer is generally the same as the one before it or is different by only a single bit or two. I'd like to shrink each array down as small as possible to reduce my disk IO. Zlib shrinks it to about 25% of its original size. That's nice,...

Stream compression for network traffic.

I am writing an xmpp library and I am trying to write a stream to support the zlib compressed data. I have two different versions one based on zlib.net and the other using SharpZipLib. The zlib.net version doesn't recognize the compression and the SharpZipLib version enters an infinite loop. You can find the appropriate code at http:/...

Where can I find an example unzipper using zlib?

I'm looking for a bare bones simple example C app for unpacking a zip file using zlib. It must support fairly new version of .zip and must have source right down to the zlib calls. ...

Unzipping files in PHP with zlib?!?

My web site is hosted at Dreamhost and there they only get zlib installed along with PHP. I couldn't figure out how to unzip files with the commom methods from this extension as described here : http://php.net/zlib Does anyone knows how can I unzip a .gz or .gzip file with zlib extension on PHP? That would save my life! ...

Compression formats with good support for random access within archives?

This is similar to a previous question, but the answers there don't satisfy my needs and my question is slightly different: I currently use gzip compression for some very large files which contain sorted data. When the files are not compressed, binary search is a handy and efficient way to support seeking to a location in the sorted da...

zlib + masm

Can zlib be used with masm without all the c runtime libraries such as msvcrt.dll and many others? If so, can you tell me how? ...

How do I zip a directory of files using C++?

I'm working on a project using C++, Boost, and Qt. I understand how to compress single files and bytestreams using, for example, the qCompress() function in Qt. How do I zip a directory of multiple files, including subdirectories? I am looking for a cross-platform (Mac, Win, Linux) solution; I'd prefer not to fire off a bunch of new pr...

Good zlib implementation in .NET?

I'm building an network application that needs to be able to switch from normal network traffic to a zlib compressed stream, mid stream. My thoughts on the matter involve boolean switch that when on will cause the network code to pass all the data through a class that I can feed IEnumerable<byte> into, and then pull out the decompressed ...

Extracting data from a zip file (PHP)

i have a tutorial from a website Net Tuts which is used to upload a zip file and extract the data from within the file into the server. copying and pasting the code straight from the web page did not work, an error occured half way through the script being processed. Fatal error: Cannot instantiate non-existent class: ziparchive in /w...

How do I read / write gzipped files?

How do I read / write gzipped files in C++? The iostream wrapper classes here look good, and here is a simple usage example: gz::igzstream in(filename); std::string line; while(std::getline(in, line)){ std::cout << line << std::endl; } But I wasn't able to actually link it (although I have a /usr/lib/libz.a). A simple g++ test-gzs...

Implementing MODE Z Compression for FTP using C#

I am trying to implement MODE Z compression for FTP using C# for an FTP client that I have written. My understanding is that MODE Z uses the same compression as zlib. I cannot get zlib.net from componentace to work. It hacks off the last part of the file after the upload to a FileZilla FTP Server. Where are the specs for MODE Z? Has...

Save file from a byte[] in C# NET 3.5

Hello, My TCP Client receives a image within a packet.The image is compressed with zlib.The task is to decompress the image and put it on the form. I'm planning to save the compressed image in the current directory,decompress it and load the decompressed file on the form. The first problem comes with saving the file(compressed).The zl...

zlib from C++ to C#(How to convert byte[] to stream and stream to byte[])

Hello, My task is to decompress a packet(received) using zlib and then use an algoritm to make a picture from the data The good news is that I have the code in C++,but the task is to do it in C# C++ //Read the first values of the packet received DWORD image[200 * 64] = {0}; //used for algoritm(width always = 200 and height alway...

Ubuntu noob rails install fails on zlib

Hey all, hope you guys can help; I've followed about every tutorial on the net with no luck. I've just moved over to Ubuntu 8.10 as my dev box; it's my first serious foray into Linux as a daily-use OS, and I'm having a hard time getting Rails going. I have followed a number of tutorials which all seem to work fine, but when I try and u...

Error compiling Ruby 1.8.7 Build 160

I was compiling Ruby 1.8.7's latest version yesterday (since the latest version has no binaries out yet). I followed the instructions in the readme file, but then, when I installed ruby gems and update it, it displays the error that zlib.so cannot be found. I am pretty sure that I already downloaded zlib libraries, etc. I also investig...

Zlib for Mono/.Net without a known Checksum

I need to implement a special ZLib implementation which should run under .Net and Mono. The data /string messages are received via a socket and thus the checksum is missing. This is about raw string data, not about files. unsigned char zlib_header[]={ // custom additional Zlib Id 'Z', // Our own ID // The normal GZIP heade...

File extention of zlib zipped html page?

What does a zipped html file using zlib (deflate) look like sitting on the server? Does it have a different extension than .html? ...