tagged [gzip]

Using Gzip to compress/decompress an array of bytes

Using Gzip to compress/decompress an array of bytes I need to compress an array of bytes. So I wrote this snippet : ``` class Program { static void Main() { var test = "foo bar baz"; ...

1 Dec at 11:13

WebAPI Gzip when returning HttpResponseMessage

WebAPI Gzip when returning HttpResponseMessage I have a WebAPI controller that returns an `HttpResponseMessage` and I want to add gzip compression. This is the server code: ``` using System.Net.Http; ...

28 Jul at 23:50

compression and decompression of string data in java

compression and decompression of string data in java I am using the following code to compress and decompress string data, but the problem which I am facing is, it is easily getting compressed without...

12 May at 19:35

How to compress http request on the fly and without loading compressed buffer in memory

How to compress http request on the fly and without loading compressed buffer in memory I need to send voluminous data in a http post request to a server supporting gziped encoded requests. Starting f...

How Decompress Gzipped Http Get Response in c#

How Decompress Gzipped Http Get Response in c# Want to Decompress a Response which is GZipped Getting from an API.Tried the Below Code ,It Always return Like:- My code is: ``` private string GetRespon...

2 Feb at 09:28

Decompressing GZip Stream from HTTPClient Response

Decompressing GZip Stream from HTTPClient Response I am trying to connect to an api, that returns GZip encoded JSON, from a WCF service (WCF service to WCF service). I am using the to connect to the A...

10 Apr at 07:10

HttpClient: Conditionally set AcceptEncoding compression at runtime

HttpClient: Conditionally set AcceptEncoding compression at runtime We are trying to implement user-determined (on a settings screen) optional gzip compression in our client which uses `HttpClient`, s...

force encoding off for one service?

force encoding off for one service? I am trying to implement an RSS feed that is linked through an Outlook client. The feed works on every machine except my development machine. When looking at the re...

21 Jun at 21:16

Compress file to bytes for uploading to SQL Server

Compress file to bytes for uploading to SQL Server I am trying to zip files to an SQL Server database table. I can't ensure that the user of the tool has write priveledges on the source file folder so...

16 Apr at 20:38

MVC 4 - GZIP compression of JSON ajax action result

MVC 4 - GZIP compression of JSON ajax action result ## The problem I have a Telerik MVC UI grid on an MVC 4 app running on IIS 7.5 that can potentially return a large amount of JSON data via AJAX, in ...

23 May at 10:31

ServiceStack - Using gzip/deflate compression with JSONP requests

ServiceStack - Using gzip/deflate compression with JSONP requests I have a ServiceStack service that compresses the response using `RequestContext.ToOptimizedResult()`, e.g.: This

5 Nov at 00:0

Web API Gzip not being applied

Web API Gzip not being applied I have added the web.config entry to enable gzip compression based on this S/O answer [Enable IIS7 gzip](https://stackoverflow.com/questions/702124/enable-iis7-gzip). I ...

23 May at 11:53

Why does my C# gzip produce a larger file than Fiddler or PHP?

Why does my C# gzip produce a larger file than Fiddler or PHP? If I GZip this text: > Hello World through C# using this code: ``` Stream stream = new MemoryStream(Encoding.Default.GetBytes("Hello Worl...

10 Mar at 21:22