Questions tagged [bzip2]

bzip2 is a Unix command used for compression and decompression of files. The main advantage of bzip2 is that it has a high compression ratio with reasonable speed.

bzip2 one of the most widely used free compression programs for the terminal.

It typically compresses files to within 10% to 15% of the best available techniques, whilst being around twice as fast at compression and six times faster at decompression.

The current version is 1.0.6, released 20 Sept 2010.

327 questions
0
votes
0 answers

bzip2: write ok, flush ok, read fail

bzip2 1.0.6 Task: compress network packets. Problem: bzip2 "BZ_FLUSH" is not working, only "BZ_FINISH" is working, but I need flush current data and keep stream for each connection, not separate stream for every packet. There is #if preprocessor tag…
toby_toby_toby
  • 103
  • 1
  • 10
0
votes
1 answer

Can BZ2_bzBuffToBuffCompress() be called repeatedly?

I have a large amount of "input" data that I want to compress to multiple bzip2 streams, without writing data to multiple intermediate files. Can I put a chunk of input data into a buffer, use BZ2_bzBuffToBuffCompress() to compress that buffer to…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
0
votes
1 answer

Python BZ2 Module Sequential decompressor: How do I find out when the complete file has been successfully decompressed?

I am using the bz2.BZ2Decompressor class to sequentially decompress a stream of bz2 compressed data. It is possible that my stream contains truncated compressed data. I need to be able to differentiate between the case when a complete file was…
AnkurVj
  • 7,958
  • 10
  • 43
  • 55
0
votes
1 answer

bzip2-ruby Windows Install

I'm attempted to install the bzip2-ruby gem on Windows 7 x64. Now I don't know if this gem even works on 64-bit Windows. I did install bzip2 which got installed to C:\Program Files (x86)\GnuWin32. When I go to install, the run the following…
Justin Chmura
  • 430
  • 1
  • 4
  • 11
0
votes
1 answer

bzip2 version used in python 3.2

What is the version of bzip2 in python 3.2? bzip2 is currently at 1.0.6. How can I find the version used in python 3.2?
HWende
  • 1,705
  • 4
  • 18
  • 30
0
votes
1 answer

Compress NSString in Cocoa and uncompress in PHP

I would like to send large NSStrings from Cocoa to PHP. Can I use the bzlib library to compress these strings on the fly (therefore to compress in memory, not from disk), and then to be able to uncompress them in PHP ? If yes, any reference…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
-1
votes
2 answers

unix command to search contents from one file in a bzip file

I have file1.txt with 100 entries. Need to search the contents of file1.txt in file2.bz2 file which is a large bzip file. bzgrep -f file1.txt file2.bz2 takes long time.
ush rani
  • 15
  • 2
  • 4
-1
votes
1 answer

Can I split compressed sql file using split linux command? If not, then any other method to do?

I have a 30 GB compressed sql file (with extension .sql.bz2) and if I unzip it will become 300 GB. However due to disk space issue, I can't do the same. Could I split the compressed sql file something like using split linux command? I tried but…
Gaurav Kumar
  • 133
  • 1
  • 5
-1
votes
1 answer

How to use tar + pbzip2 with Jenkins

I've been trying to find ways to cut my Jenkins build time as much as possible, and thanks to this helpful SO post, I found pbzip2: Utilizing multi core for tar+gzip/bzip compression/decompression Works great! A 6 min compression time was brought…
-1
votes
1 answer

PHP Bz2 extension question

When I am using bzopen, do I need to bzwrite() already compressed by a bzcompress() string or is it being compressed automatically while writing?
Rob
  • 3,013
  • 2
  • 16
  • 5
-1
votes
1 answer

how to extract bz2 files in command line of fedora system?

I just find tar, unzip, bunzip2, 7z, unrar, gunzip, all do not work for bz2 files. Is there a simple method to do that? Or where can I download a rpm file to install?
questionhang
  • 735
  • 2
  • 12
  • 31
-3
votes
1 answer

Writing to bzip2 archive

I am processing multiple .json files which I need to add to a single .zip archive using a package available here: https://github.com/larzconwell/bzip2. I have referenced other possible solutions and questions related to io.Writer along with .Close()…
Kaszanas
  • 446
  • 4
  • 18
1 2 3
21
22