Questions tagged [gzip]

GZip/gzip is both the name for a compressed data format and any of several software applications implementing this format. Use this tag for questions about implementing the library on your program.

gzip is the name for the compressed data format used by the eponymous GZip application for compressing and decompressing data.

The format is based on the deflate compressed data format, with the addition of a file metadata header and a CRC32 checksum. It is defined in RFC 1952. It is commonly used to compress HTTP requests and responses, and also often combined with the tar format for archival.

The most known standalone command-line implementation is GNU zip. The format is also implemented by the zlib library, and in this form used in many applications.

GZip on Wikipedia

6057 questions
3
votes
2 answers

Comparing every fourth line of two gzipped files

I have 2 gzipped files of about 1Gb each. I want to read in both files simultaneously and compare every fourth line of both files with each other. Is there a faster way then doing it like this? import gzip file1 = r"path\to\file1.gz" file2 =…
BioGeek
  • 21,897
  • 23
  • 83
  • 145
3
votes
1 answer

Loading GZIP JSON file using AJAX

I have gzipped json file using below algorithm (from: java gzip can't keep original file's extension name) private static boolean compress(String inputFileName, String targetFileName){ boolean compressResult=true; int BUFFER =…
ad-inf
  • 1,520
  • 4
  • 30
  • 53
3
votes
1 answer

Handle gzipped or bzip2ed downloads without keeping compressed data

I'd like to download a compressed file (either in gzip or bzip2), decompress it and analyze its contents (it's a CSV-like file with lots of data, I calculate sums, averages and such for certain columns) while the download happens (so that I can show…
liori
  • 40,917
  • 13
  • 78
  • 105
3
votes
2 answers

IIS7 GZIP Compression - httpCompression section

I trying to configure httpCompression on IIS7. By googling, I found that it can be made using httpCompression section in config. The problem, that I can't make it work from web.config. When I make the configuration in applicationHost.config…
Alex Dn
  • 5,465
  • 7
  • 41
  • 79
3
votes
1 answer

tornadoweb gzip=True not working under supervisord and nginx

While working with tornado, I've discovered gzip=True feature, which works fine while running application from command line, below settings: define("port", default=settings.LISTEN_PORT, help="run on the given port", type=int) define("debug",…
user1632928
  • 252
  • 1
  • 4
  • 14
3
votes
1 answer

How to request a gzipped / compressed SOAP response?

i used the wsimport tool to create a soap client which is working very well. Now I like to request a compressed response from the server because the responses can be quite big. I don't know if the server is able to send compressed content. As far…
Till1234
  • 73
  • 1
  • 7
3
votes
1 answer

Extract gzip via passive library

I need to extract a large gzip data stream in C++ (on Linux) into memory. I intended to use libarchive, but I have the limit that I cannot block or use any kind of synchronization. AFAIR in order to use libarchive's custom reader it has to block,…
abergmeier
  • 13,224
  • 13
  • 64
  • 120
3
votes
2 answers

How to untargz files using maven?

Using maven, I download some Chef cookbooks. Received files are in the .tgz format, and I want to unpack them. How can I do that ? Is there any useful plugin ?
Riduidel
  • 22,052
  • 14
  • 85
  • 185
3
votes
0 answers

How to force GZIP for Development Google Appengine Server

My code can get gzip content from google appengine server, but it gets the full size from localhost (appengine dev server). It looks it using jetty as web server. Is it possible to force localhost to use gzip?
atu0830
  • 405
  • 7
  • 15
3
votes
5 answers

how to unzip txt.gz file and store into database using php

My zip file name is Product_Catalog.txt.gz. this zip file contain one txt file. how can i extract and store into my database i have already done in zip file unzip and store into my database. but i can't understand .gz format. so please advise my…
VIVEK-MDU
  • 2,483
  • 3
  • 36
  • 63
3
votes
1 answer

Get Rails pipeline to gzip xml assets

I'm using the rails asset pipeline for my rails site. The assets:precompile task properly processes and creates gzip versions of my css and js files automatically. I've now added some xml assets. The asset pipeline lets me reference the files just…
nycuser
  • 61
  • 2
3
votes
1 answer

How to advance past a deflate byte sequence contained in a byte stream?

I have a byte stream that is a concatenation of sections, where each section is composed of a header plus a deflated byte stream. I need to split this byte stream sections but the header only contains information about the data in uncompressed…
Thiago Padilha
  • 4,590
  • 5
  • 44
  • 69
3
votes
2 answers

Trying to compress images (Gzip+Jpeg) and then uncompress them

I am trying to compress a sequence of images in png format. It seems that compression is going well: FileOutputStream fos = null; GZIPOutputStream gzip = null; fos = new FileOutputStream(PATH_SAVE_GZIP); gzip = new GZIPOutputStream(fos); for (int i…
Vito Valov
  • 1,765
  • 1
  • 19
  • 37
3
votes
3 answers

Where and how does the file get gzipped?

When downloading a production copy of jQuery, next to the link it says that the file is 32K Minified & Gzipped. I get Minified but what do they mean by Gzipped? Is it Gzipped by the webserver like Apache deflate? update: found this website to see…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
3
votes
1 answer

Create ZIP/RAR/GZ archive from structured array of files and folders

I'm trying to create a backup class, with the main goal of customizing the class-call to make the final backup be filtered only on specific extensions, specific filesizes, or specific directories within a main directory, based on user…
Maurizio
  • 469
  • 1
  • 4
  • 11
1 2 3
99
100