decompress

uncompress .Z file in C

Can someone point me to a public domain (or MIT- or BSD-license) library for decompressing .Z files in ANSI C? Thanks! ...

#ZipLib error while decompressing GZip

Hello, I'm getting this error while trying to decompress some GZ files with #ZipLib 0.85.5 Those file are not corrupted, I'm able to decompress it correctly using 7-Zip. ICSharpCode.SharpZipLib.SharpZipBaseException Unexpected EOF Any idea? Thanks ...

Is there a command in Fortran77 or later that decompresses a file?

I have a file that is compressed and I want to decompress it. Do you know if there is a command or do I need to follow another path? ...

How to decompress a file in fortran77?

I have a compressed file. Let's ignore the tar command because I'm not sure it is compressed with that. All I know is that it is compressed in fortran77 and that is what I should use to decompress it. How can I do it? Is decompression a one way road or do I need a certain header file that will lead (direct) the decompression? It's not a...

How to use ICSharpCode.ZipLib with stream?

Hello, I'm very sorry for the conservative title and my question itself,but I'm lost. The samples provided with ICsharpCode.ZipLib doesn't include what I'm searching for. I want to decompress a byte[] by putting it in InflaterInputStream(ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream) I found a decompress function...

decompress .gz file in batch

I have 100 of .gz files which I need to de-compress. I have couple of questions a) I am using the code given at http://www.roseindia.net/java/beginners/JavaUncompress.shtml to decompress the .gz file. Its working fine. Quest:- is there a way to get the file name of the zipped file. I know that Zip class of Java gives of enumeration of...

SharpZipLib ~ How to extract specific files from a zip

Ok, I have a list of files (SourceFile objects which just contain the filename only) then I want to pull those specific files out of a zip and dump them into a temp directory so I can distribute them later. I came up with this, but I am unsure on how to proceed next.. private List ExtractSelectedFiles() { List zipFilePaths = new...

Decompressing a .bz2 file in Python

So, this is a seemingly simple question, but I'm apparently very very dull. I have a little script that downloads all the .bz2 files from a webpage, but for some reason the decompressing of that file is giving me a MAJOR headache. I'm quite a Python newbie, so the answer is probably quite obvious, please help me. In this bit of the scr...

Detecting File Compression

I have to read some data stored by a third party application in an Acess 2000 database. The vendor is no longer around to ask questions. One table contains image data that appears to be compressed - because the original application can export the contents of the blob field to an embedded png image in a xls export file. I have extracte...

compressed file format for Iphone

hi all, i am new to iPhone i want to ask that what is the compressed file format which is supported on iPhone. Also how can extract this file programmatically. ...

GZipStream and decompression

I have code that should do the compression: FileStream fs = new FileStream("g:\\gj.txt", FileMode.Open); FileStream fd = new FileStream("g:\\gj.zip", FileMode.Create); GZipStream csStream = new GZipStream(fd, CompressionMode.Compress); byte[] compressedBuffer = new byte[500]; int offset = 0; ...

how to import/export dll and use its function

I am developing a project. I want to include a particular function from 7zip software to decompress data. Its a kinda exporting a particular function from 7zip software to my project. Should I do using DLL import and export or is there any other way? ...

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...

RAR Decompress on iPhone Device

Has anyone found a solution to decompressing RAR files on iPhone (not Jailbroken)? It would be great if there was a library similar to libz. I did not find anything official from RARlab. Anyone successful with integrating unRAR into their app? The source code appears to be C++? I know that this has been asked before, but I've not see...

How to unzip files in blackberry

Hi everyone. I'm developing an app that manages a file zip with directories and files. I must know how to unzip these files in order to create in local the same structure as in the zip file. Thanks in advance :) Sergio ...

How to read or parse MHTML (.mht) files in java

Hi All I need to mine the content of most of known document files like: pdf html doc/docx etc. For most of these file formats I am planning to use: http://tika.apache.org/ But as of now Tika does not support MHTML (*.mht) files.. ( http://en.wikipedia.org/wiki/MHTML ) There are few examples in C# ( http://www.codeproject.com/KB/fi...

Compress Python objects before saving to cache

What's the fast method to compress Python objects (list, dictionary, string, etc) before saving them to cache and decompress after read from cache? I'm using Django and I hope to add compress/decompress support directly in Django's cache backend which makes it available to all my Django apps. I looked into django/core/cache/backends/me...

c# gzipstream decompression is more like depression...

final working code is here.... public static byte[] ToGZip( this string source ) { using( var stream = new MemoryStream( ) ) { using( var compressor = new GZipStream( stream, CompressionMode.Compress ) ) { var bytes = System.Text.UTF8Encoding.UTF8.GetBytes( source ); ...

Zlib Decompress works on Linux but not on Windows

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? ...