decompression

MSDN C# DeflateStream sample code issue

Hello everyone, Any ideas why in the below sample, we need to add 100 (buffer.Length + 100)? buffer.Length should be the same as decompressed buffer length, so no need to add 100 more. :-) http://msdn.microsoft.com/en-us/library/bc2dbwea.aspx thanks in advance, George ...

C# - Vista - Decompression being virtualized when using CommonApplicationData

Assume UAC is ON. This does not create a problem with it off. I have a c# app with a backup/restore functionality and using sql server 2005 express. code to get the backupPath is used for both backup and restore and the name for all purposes will be backup.dat to generate backup path string path = Environment.GetFolderPath(Environmen...

LZO Decompression Buffer Size

I am using MiniLZO on a project for some really simple compression tasks. I am compressing with one program, and decompressing with another. I'd like to know how much space to allocate for the decompression buffer. I am fine with over-allocating space, if it can save me the trouble of having to annotate my output file with an integer ...

Online Tool to Unminify / Decompress JavaScript

Are there any scripts and/or online tools that can reverse the effects of minification similar to how Tidy can clean up horrific HTML? I'm specifically looking to unminify a minified JavaScript file, so variable renaming (like with compression or packing) should theoretically not be an issue. ...

GZipInputSteam DeCompression did not work for a data of size more than 13239

Hi, I have created compression and decompression technique using GZipinputstream in both c#.NET and Java. If I compress up to 13239 bytes in c#.NET then i can decompress it in Java but if I compress more than 13239 bytes in c#.NET then i am not able to decompress it in Java. But I can decompress it using C#.NET. Any ideas what could be ...

1 or more bytes truncation with GZip round trip [solved]

Hi I dont get it. I have used a similar/same approach for many years now, and never experienced this. For some reason, that I did not pick up until today, a GZip round trip results in 1 or more bytes being truncated or data being garbled. I wrote a simple test to verify that something else is not affecting it. This always fails with ...

"Reading" zip files as if they were directories

Are there any libraries for dealing with zip files as if they were simply directories? i.e. get a file listing, read a file, etc. I prefer something in C, but any other language is fine. Also, it would help if such a library could deal with other compression formats (rar, 7z, etc). ...

How to decompress data using z lib in symbian

I have compressed a data using Deflater(Z lib) in java. My friend is in symbian he is using z lib. But he is unable to decompress the data. But if he compress the data then i am able to decompress the data Is there any compression level to be set by me so that the can be decompressed by the symbian guy. Or is there any help to impleme...

Rendering a Sequence of Images in C# to make a video

I have a sequence of jpg images that I am capturing and rendering to the screen to create a video. I am decompressing the image from a MemoryStream using a JpegBitmapDecoder and rendering it by setting the Source on an Image control. This seems to work okay, but the processor overhead is pretty high. The images are 1280x720, running...

Flex 3 Hiding "764 bytes after decompression" trace statements

Hey, i'm working on a flex project where we load in a bunch of swf files from a zip archive using fzip. And whenever i'm running in debug mode, I get a whole bunch of trace statements saying like, [SWF] filepath - 251 bytes after decompression I'm just wondering if anyone knows how to hide these statements in the output window as there...

C# compression and JavaScript decompression

I've got some strings that I need to compress server-side in C#, then decompress client-side in JavaScript. What can I use to accomplish this? ...

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

ZLib decompression

I am trying to compress data using the zlib .net library. Regardless of the content of the uncompressed string I only seem to get two bytes of data in the raw[]. { string uncompressed = "1234567890"; byte[] data = UTF8Encoding.Default.GetBytes(uncompressed); MemoryStream input = new MemoryStream(data); MemoryStream out...

Only decompress a specific bzip2 block

Say I have a humongous bzip2 file (over 5GB), and say I want to decompress only block #x, because there is where my data is (block is different every time). How would I do this. I have thought about making an index of where all the blocks are, then cut the block I need from the file and apply bzip2recover to it. I have also thought abo...

Uncompress data file with DeflateStream

I'm having trouble reading a compressed (deflated) data file using C# .NET DeflateStream(..., CompressionMode.Decompress). The file was written earlier using DeflateStream(..., CompressionMode.Compress), and it seems to be just fine (I can even decompress it using a Java program). However, the first Read() call on the input stream to de...

Third party decompression on Blackberry

I know the BB only handles GZip and ZLib compression/decompression. my app gets essentially a zip file containing a large number of possible file types (txt, doc, html, wmv, png, gif, etc)...decrypts and displays the file a user selects from a tree. Using these decompression algorithms is not a good way to go having to decompress/decrypt...

LZW Decompression in C

Hi, I have an LZW compressor/decompressor written in C. The initial table consists of ASCII characters and then each now string to be saved into the table consists of a prefix and a character both saved in a list as int. My compression works but my decompression leaves some characters out. The input: <title>Agile</title><body><h1>Agi...

Compress Object/String through webservice and consume in .net compact framework

We need to compress (or rather uncompress) some data we send to a pda client using a webservice. Below I have a simple concept that will work if consumed by a regular .net app. Unfortuantly, as the compact framework doesn't have the IO.Compression classes we can't see how this is possible without writing our own compression algorithms...

Unzipping unfinished gzip...possible?

So I just spent a week running a simulation, but the computer had to be turned off to move it (terrible, I know). The data that was being produced was being zipped due to it's size by piping it into gzip, but since the simulation wasn't finished, I can't unzip the .gz file. We have since started the simulation over, but I was wondering...

Library for decompression of most common file-archive formats?

I'm writing an application that needs to read the contents of & decompress common file-archival formats, including ZIP, RAR, and 7z. However, I can't seem to find a library that does all this and abstracts the functionality to the level I need, with simple functions in the vein of: ExtractArchive() ExtractArchiveTruncated() ReadArch...