Hi,
I would like to know how to determine how many zlib files are contained in a single file.
An example; Think I have 5 different files, and compressed them separately by using zlib. Then I combined them. So, I have one file contains 5 different zlib files. Now, how can I find how many zlib files are in that single file? I just need t...
I have some code here to call minizip(), a boilerplate dirty renamed main() of the minizip program, but when I compile, I get undefined reference to `minizip(int, char*)*. Here's the code.
int minizip(int argc, char* argv[]);
void zipFiles(void)
{
char arg0[] = "BBG";
char arg1[] = "-0";
char arg2[] = "out.zip";
char arg3[] = "serv...
Hi to all,
on the last days I had a really annoying problem, that is just now solved, but I'll hope that some of you experienced it and figured out a solution for that.
I created and installed Ubuntu 10.04 on Virtualbox 3.2.0 (installed under Win7-32 bits). On this VM was installed and configured rvm, ruby 1.8.7 and some gems. When trie...
I get an error when i run:
vagrant@vagrantup:~$ sudo gem list
ERROR: Loading command: list (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::ListCommand
Even if I don't use sudo I get the same error message.
It's on Ubuntu 10.4 and I have installed zlib...
First, let's define some commonly confused terms:
deflate = compression_algorithm;
zlib = header + deflate + trailer;
gzip = header + deflate + trailer;
I'm looking for a library that will basically let me do the following:
if(method == "gzip"){
Response.Filter = new CompressionLibrary.OutputStream(Response.Filter, CompressionLib...
I have made a compression in c/c++ (NO UNDER THE CLR) using the library zlib.h, and it works great. the functions that I use deflate() and inflate().
Now the file compressed by the c application, I want to decompress it with the zlib.net application, using c#, but I do not manage to get it working. When trying to decompress it, I get th...
I don't understand
in 2.X it worked :
import zlib
zlib.compress('Hello, world')
now i have a :
zlib.compress("Hello world!")
TypeError: must be bytes or buffer, not str
How can i compress my string ?
Regards
Bussiere
...
hi friends,
I have a problem that I install 'Archive_Zip 0.1.1' on Linux server, but when I try to run the script to create the zip file it gives the fatal error
"Fatal error: Class 'ZipArchive' not found in ---"
where I put the code
$zip = new ZipArchive;
var_dump($zip);
$res = $zip->open($filename, ZipArchive::OVERWRITE);
if($res !...
In the chapter Filters (scroll down ~50%) in an article about the Remote Call Framework are mentioned 2 ways of compression:
ZLib stateless compression
ZLib stateful compression
What is the difference between those? Is it ZLib-related or are these common compression methods?
While searching I could only find stateful and stateless w...
I've got a Debian 5 (lenny) setup with Python 2.6 built from source (2.6 isn't available through APT nor backports for some reason) and it has the PIL library installed.
During installation it passes telling me I have PNG/ZIP support, which is what i need, but when I either try to run the python script (which works on my windows machine...
I am unable to load PNGs with CImg. I've heard you need to get libpng / zlib to get to work first but I am unsure how to set this up. I am on Ubuntu. My source:
#include <cmath>
#include <cstdio>
#include <string>
#include <assert.h>
#include <stdarg.h>
#define cimg_using_png
#include "CImg.h"
using namespace cimg_library;
#include "pn...
I'm working with a very simple filesystem database in order to benefit from performance. Unfortunately, the trade-off is disk space. I'm thinking about compressing data everytime I write and read from the filesystem database using gzuncompress and gzcompress. How slow are those functions? Can they be used without affecting my system perf...
I'm working on a project where a Windows web server running PHP is communicating over a very slow connection with a back end Linux server running an application written in C++. Because the connection between the two machines is so slow, I'd like to compress the traffic moving between them.
I've gotten to where I can compress a string, ...
I can't seem to install zlib properly, I installed Python from source on Ubuntu10.4
'######## edit #####################
bobince and Luper helped.
Make sure you install these packages and then recompile Python:
sudo aptitude install zlib1g-dev libreadline6-dev libdb4.8-dev libncurses5-dev
'#################################
After inst...
Hi,
I have a valid Zlib stream from a PDF file that I manage to decompress successfully under Linux with Perl and Python, however the same scripts fail to decompress the same stream under Windows, looks like I'm missing something, any idea what?
...