Questions tagged [gunzip]

The gzip program compresses and decompresses files using Lempel-Ziv coding (LZ77).

gunzip (GNU unzip) is the data decompression tool associated with the compression tool gzip (GNU zip). It can decompress files created by gzip, compress or pack.

202 questions
8
votes
1 answer

AJAX response gives a corrupted compressed (.tgz) file

We are implementing a client-side web application that communicates with the server exclusively via XMLHttpRequests (and AJAX engine). The XHR responses usually are plain text with some XML on it but in this case, the server is sending compressed…
user3049130
  • 241
  • 2
  • 8
8
votes
1 answer

How to have a browser gunzip an Ajax fetched gziped text file?

Assuming a server which cannot zip responses to user requests. A web developer nevertheless creates a myfile.txt.gz and stores it at http://www.mysite.com/myfile.txt.gz. It is possible to have the browser automatically gunzip this compressed text…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
7
votes
2 answers

Decompressing gz SQL file

So I want to decompress my something.gz file. Whenever I try to do this by using gunzip it ends after a little while saying there was an unexpected end of the file. The file itself is about 4gb. Would appreciate any help regarding this…
Daniel
  • 73
  • 1
  • 1
  • 7
7
votes
1 answer

Faster, better gunzip (and general file input/output) in python

How do you gzip/gunzip files using python at a speed comparable to the underlying libraries? tl;dr - Use shutil.copyfileobj(f_in, f_out). I'm decompressing *.gz files as part of a larger series of file processing, and profiling to try to get python…
JHiant
  • 519
  • 5
  • 11
7
votes
3 answers

get the filesize of very large .gz file on a 64bit platform

According to the specifiction of gz the filesize is saved in the last 4bytes of a .gz file. I have created 2 files with dd if=/dev/urandom of=500M bs=1024 count=500000 dd if=/dev/urandom of=5G bs=1024 count=5000000 I gziped them gzip 500M 5G I…
monkeyking
  • 6,670
  • 24
  • 61
  • 81
6
votes
1 answer

How to gunzip stream in nodejs?

I'm trying to accomplish quite an easy task but I'm a little bit confused and got stuck on using zlib in nodejs. I'm building functionality that includes me downloading file from aws S3 which is gziped, unzipping it and reading it line by line. I…
Tomas
  • 1,131
  • 2
  • 12
  • 25
6
votes
3 answers

gunzip a file stream in R?

I'm trying to create an R API for StackOverflow. The output is gzipped. For example: readLines("http://api.stackoverflow.com/0.9/stats/", warn=F) [1] "\037‹\b" …
Shane
  • 98,550
  • 35
  • 224
  • 217
6
votes
2 answers

GUNZIP / Extract file "portion by portion"

I'm on a shared server with restricted disk space and i've got a gz file that super expands into a HUGE file, more than what i've got. How can I extract it "portion" by "portion (lets say 10 MB at a time), and process each portion, without…
Dave
  • 599
  • 4
  • 11
  • 20
6
votes
0 answers

How do I get node.js zlib gunzip pipe to work?

I have a large .gz file (roughly about 100Mb in size), however, when I process the file using the following code, the outputted file is only 256k. var fs = require('fs'), zlib = require('zlib'); var inp1 = fs.createReadStream('feed.xml.gz'); var…
Paul
  • 756
  • 1
  • 10
  • 22
5
votes
3 answers

Using gunzip on Windows in command line

I need to use gunzip (which is the decompression tool of gzip) in a terminal on Windows I've downloaded gzip from here (first download link) I installed it and added its /bin folder to my PATH variable, the gzip command works but gunzip is not even…
Valentin Macé
  • 1,150
  • 1
  • 10
  • 25
5
votes
1 answer

Can i concatenate two already gzipped files (using gzip) and then gunzip them?

Can i concatenate two already gzipped files (using gzip) and then gunzip them? As of today, I download the gzipped files from remote servers, gunzip them individually and then cat them to merge. Looking to make things faster here by merging the…
Pradeep
  • 109
  • 5
4
votes
2 answers

Get gzip decompressed file size as fast as gunzip (no seek)

As some StackOverflow answers show, you can get the exact gzip decompressed file size using decompressedSize = gzipFile.seek(0, io.SEEK_END). Some people also suggest for files smaller than 4 GiB to do .seek(-4, 1). However, because it's seeking…
Programer Beginner
  • 1,377
  • 6
  • 21
  • 47
4
votes
1 answer

'gunzip' is not recognized as an internal or external command, operable program or batch file. System command 'gunzip' failed

I am trying to analyse my raw GNSS data on the GNSS Analyser app from here https://github.com/google/gps-measurement-tools. The installation guide includes the following step: 4.2 gunzip installation The automatic ftp code inside GnssAnalysis will…
reddagger
  • 49
  • 1
  • 1
  • 2
4
votes
1 answer

Change gunzip temporary directory while used in pipe

Background I'm working on an mysql server with those hdd partitions: ... /dev/vdd 99G 58G 39G 61% /var/lib/mysql tmpfs 2,4G 0 2,4G 0% /tmp ... I need to import a mysql dump into my database. Therefore I use the…
cb0
  • 8,415
  • 9
  • 52
  • 80
4
votes
2 answers

Untar / Unzip *.tar.xz with ANT

I want to extract a tarball-file with *.tar.xz with ant. But I can only find, bunzip2, gunzip, unzip and untar as goals in ant and none of it seems to work. So how can I expand a tarball-file with *.tar.xz with ant?
Sebastian Röher
  • 417
  • 7
  • 20
1
2
3
13 14