decompression

Trouble using python's gzip/"How do I know what compression is being used?"

Ok, so I've got an Open Source Java client/server program that uses packets to communicate. I'm trying to write a python client for said program, but the contents of the packet seem to be compressed. A quick perusal through the source code suggested gzip as the compression schema (since that was the only compression module imported in th...

Best way to decompress javascrpt files

hey guys as u know there are lots of ways to compress a JS file such as Packer YUI and .... but how can we decompress them so many times happened to me that i did compress a file and i lost the source file plz if u know any software or method give me a hint ...

color depth bits?

(Quick version: jump to paragraph next to the last one - the one beginning with "But") I was happy in my ignorance believing that PVRTC images were 4 or 2 bits per channel. That sounded plausible. It would give 4+4+4+4 (16 bit) or 2+2+2+2 (8 bit) textures, that would have 2^16 (65536) and 2^8 (256) color depth respectively. But reading ...

Decoding a compressed short string; uncertain on compression used - Updated

Hi, I have a program that is compressing a string in an unknown way. I know a few inputs and the output produced, but I am not sure what is being used to compress the string. Here are my examples. (just 38 x a, no spaces or anything else) In: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" Out: "21 1A A6 30 00" (just 32 x a) In: "aaaaaa...

Fastest real time decompression algorithm

I'm looking for an algorithm to decompress chunks of data (1k-30k) in real time with minimal overhead. Compression should preferably be fast but isn't as important as decompression speed. From what I could gather LZO1X would be the fastest one. Have I missed anything? Ideally the algorithm is not under GPL. Thanks. ...

Data decompression on iPhone with gZip

Hello friends, I am using socket connection to get data from the server. Socket stream is compressed with gzip format. Now at iPhone side I am using this code to decompress it. But unfortunately I am getting Null string. Actually Data is compressed and then encoded. I am decoding my data and then trying to decompress it. (I have veri...

How to get type and number of .zip contents

How can i get the content names of a zipped folder in C# i.e. name of files and folders inside the compressed folder? I want to decompress the zip by using GZipStream only. thanks, kapil ...

Problem with C# Decompression

Have some data in a sybase image type column that I want to use in a C# app. The data has been compressed by Java using the java.util.zip package. I wanted to test that I could decompress the data in C#. So I wrote a test app that pulls it out of the database: byte[] bytes = (byte[])reader.GetValue(0); This gives me a compressed b...

iphone application

I am working on the module in which I have to decompress the data. The data comes from server which is zipped using gzip format. I am using NSData+Gzip.m file in which there is a function named "gzipInflate" to unzip the data. but it gives me the error "Z_OK -3". Now what is the solution of that error. How can I solve it. Please reply me...

What is the VInt in Lucene ?

I want to know what is the VInt in Lucene ? I read this article , but i don't understand what is it and where does Lucene use it ? Why Lucene doesn't use simple integer or big integer ? Thanks . ...

IE 8 dialog windows not decompressing files

Hi, I've got a website where we have pre-compressed all of our HTML files. In general this works fine, but since IE 8 has come out some people are finding that they can not use some parts of the website. We've used the showModalDialog command to open a dialog window and pointing to one of our pre-compressed files but it displays it jus...

zlib: Decompressed File Size?

Hi all. I'm using zlib to decompress a file. I want to verify that there is enough disk space to unzip the file. Do the zip format and zlib provide facilities to determine the decompressed size of its contents? ...

compression decompression iPhone

Hi Friends, I am stuck with this problem. We are doing compression in .net and decompression in iPhone, Using GZip compression on both sides but the answer differs. Anyone has clue then please reply. Thanks in Advance. ...

How to read a .gz file line-by-line in C++?

Hi, I have file of 3T in .gz format. I want to read it line-by-line in a C++ program without actually decompressing. Can any one post a simple example of doing it? ...

how to display CCITT Group 4 tiff files in silverlight?

According to "How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function?"(sorry cannot post links here yet) trying to port LibTiff.NET library to Silverlight, but failed. Will be very grateful if someone explain me how to remove unsupported by silverlight without losing opportunity decompress CCITT...

decompress deflate64

I've got a compressed string of bytes coming out of a database which I need to decompress so as to retrieve the rtf file in there. This is the requirement. I tried to use DotNetZip and it has given me a 50% success ratio. The failed 50% gave me a unsupported encryption (0x09, deflate64) error. So I think my problem is that some of the c...

visualization of compressed (deflated, gzipped) content structures

I have some ideas I would like to experiment with relating to data compression, but am finding it difficult to decipher some parts of how the standard are applied "in real life". I would like to look at some sample compressed files to observe how the the blocks are arranged and the huffman tree(s) are structured. Are there any tools in...

opening a rar file by c

I have to write code in C to extract a password protected rar file in windows. I don't have any clue about how to do this. can anybody suggest me something or provide a sample piece of code? I will be very thankful. EDIT: This is the code I am using to open the rar file.In the system command ranjit is the password. It's giving the erro...

Binary Array Compression in C

I have binary array in c, I want to compress the array, kindly suggest me algorithm which compress binary array. I have used Lempel–Ziv–Welch (LZW) algorithm but its not suitable for me because there is no repetition in my data. ...

Is Terra Compression possible? If so, please explain and provide samples.

Long Ascii String Text may or may not be crushed and compressed into hash kind of ascii "checksum" by using sophisticated mathematical formula/algo. Just like air which can be compressed. To compress megabytes of ascii text into a 128 or so bytes, by shuffling, then mixing new "patterns" of single "bytes" turn by turn from the first to t...