tagged [compression]

Really simple short string compression

Really simple short string compression Is there a really simple compression technique for strings up to about 255 characters in length (yes, I'm compressing [URLs](http://en.wikipedia.org/wiki/Uniform...

13 Sep at 18:31

How do I enable HTTP Compression when using servicestack with IIS8

How do I enable HTTP Compression when using servicestack with IIS8 I had a project that built on the latest version of servicestack 4. And it seems the response will always not including content-codin...

12 May at 16:17

Why use deflate instead of gzip for text files served by Apache?

Why use deflate instead of gzip for text files served by Apache? What advantages do either method offer for html, css and javascript files served by a LAMP server. Are there better alternatives? The s...

23 May at 12:18

How to compress a Byte array without stream or system io

How to compress a Byte array without stream or system io I'm trying to encode an image into a byte array and send it to a server. the encoding and sending parts wok fine but my problem is that the byt...

28 Aug at 13:48

Create Zip archive from multiple in memory files in C#

Create Zip archive from multiple in memory files in C# Is there a way to create a Zip archive that contains multiple files, when the files are currently in memory? The files I want to save are really ...

9 Nov at 19:4

Changing response type in aspx page breaks in IIS7

Changing response type in aspx page breaks in IIS7 I have a custom implementation of Application_PreRequestHandlerExecute which is applying a deflate/gzip filter to the response. However, on IIS7, thi...

3 Mar at 15:1

Zip folder in C#

Zip folder in C# What is an example (simple code) of how to zip a folder in C#? --- Update: I do not see namespace `ICSharpCode`. I downloaded `ICSharpCode.SharpZipLib.dll` but I do not know where to ...

25 Mar at 15:3

Installed .Net 4.5 but can't use ZipFile class in Visual C#

Installed .Net 4.5 but can't use ZipFile class in Visual C# I'm kind of a newbie to Visual Studio programming. I recently upgraded .Net 4.0 to 4.5 in order to use the ZipFile class under System.IO.Com...

GZipStream works but extension is lost

GZipStream works but extension is lost I am using following code to zip a file and it works fine but when I decompress with WinRar I get the original file name without the extension, any clue why if f...

14 Oct at 10:57

Compress large Integers into smallest possible string

Compress large Integers into smallest possible string I have a bunch of 10 digit integers that I'm passing in a URL. Something like: "4294965286", "2292964213". They will always be positive and always...

5 May at 16:31

Free compression library for C# which supports 7zip (LZMA)

Free compression library for C# which supports 7zip (LZMA) I have a program (written in C#) that reads/writes its data directly (direct file access without server) to firebird database files. For a be...

1 Oct at 02:8

How to extract just the specific directory from a zip archive in C# .NET 4.5?

How to extract just the specific directory from a zip archive in C# .NET 4.5? I have zip file with following internal structure: What would be the best way to extract files from "directoryABC" folder ...

2 Mar at 20:32

Create a .tar.bz2 file Linux

Create a .tar.bz2 file Linux On my Linux machine, I wish to create a .tar.bz2 file of a certain folder. Once I place myself in that folder (in the terminal), what do I type in the terminal command lin...

23 Apr at 14:10

How do I ZIP a file in C#, using no 3rd-party APIs?

How do I ZIP a file in C#, using no 3rd-party APIs? I'm pretty sure this is not a duplicate so bear with me for just a minute. How can I programatically (C#) ZIP a file (in Windows) without using any ...

3 Jun at 01:1

JavaScript implementation of Gzip

JavaScript implementation of Gzip I'm writing a Web application that needs to store JSON data in a small, fixed-size server-side cache via AJAX (think: [Opensocial quotas](http://code.google.com/apis/...

27 Oct at 18:49

High quality JPEG compression with c#

High quality JPEG compression with c# I am using C# and want to save images using JPEG format. However .NET reduces quality of the images and saves them with compression that is not enough. I want to ...

12 Dec at 07:15

How does one make a Zip bomb?

How does one make a Zip bomb? [This question](https://stackoverflow.com/questions/1459080/how-can-i-protect-myself-from-a-zip-bomb) about zip bombs naturally led me to the [Wikipedia page](http://en.w...

16 Mar at 20:42

Can gzip compression be selectively disabled in ASP.NET/IIS 7?

Can gzip compression be selectively disabled in ASP.NET/IIS 7? I am using a long-lived asynchronous HTTP connection to send progress updates to a client via AJAX. When compression is enabled, the upda...

Compress objects before saving to redis

Compress objects before saving to redis I have just started looking at ss and redis. i am using microsoft redis implementation. with compression turned on, the dump.rdb is growing too fast. I would li...

28 Sep at 07:35

Compile Brotli into a DLL .NET can reference

Compile Brotli into a DLL .NET can reference So I'd like to take advantage of Brotli but I am not familiar with Python and C++.. I know someone had compiled it into a Windows .exe. But how do I wrap i...

Nothing happens when I try to send files / folders to Compressed (zipped) folder

Nothing happens when I try to send files / folders to Compressed (zipped) folder For a while now, I've been unable to send files or folders to Zipped folder from windows explorer. The option is there,...

3 Aug at 06:11

Creating a ZIP archive in memory using System.IO.Compression

Creating a ZIP archive in memory using System.IO.Compression I'm trying to create a ZIP archive with a simple demo text file using a `MemoryStream` as follows: ``` using (var memoryStream = new Memory...

1 May at 12:14

How to compress a HttpWebRequest POST

How to compress a HttpWebRequest POST I am trying to post data to server that accepts compressed data. The code below works just fine, but it is uncompressed. I have not worked with compression or Gzi...

11 Nov at 04:22

How to extract a folder from zip file using SharpZipLib?

How to extract a folder from zip file using SharpZipLib? I have a `test.zip` file which contains inside a Folder with a bunch of other files and folders in it. I found [SharpZipLib](https://github.com...

16 Mar at 22:30

How to implement GZip compression in ASP.NET?

How to implement GZip compression in ASP.NET? I am trying to implement GZip compression for my asp.net page (including my CSS and JS files). I tried the following code, but it only compresses my .aspx...

15 Apr at 15:21