Questions tagged [data-compression]

156 questions
2
votes
3 answers

redirect output to compressed format (C)

Is it possible to use fprintf in such a way that write data to a compressed file? For example: fopen ("myfile.txt","w"); will write to a plain text file. So the file size grows very large.
mahmood
  • 19,156
  • 36
  • 118
  • 190
2
votes
3 answers

Recommended Resources for Data Compression Research

I'm looking for recommended resources on data compression; any studies on techniques, data structure and/or algorithms; any useful resources related to research, any books, organizations or any other information would be helpful. I know it's kind of…
Fostah
  • 10,330
  • 9
  • 44
  • 55
2
votes
3 answers

Alternatives to GZIPInput/OutputStream with better compression ratios?

I need to store abitrary binary data (essentially files of various common formats, JPEG, PDF, MS-Office and some other odd files). Slow compression is not a problem, but I'm looking for reasonably fast decompression and as good a compression ratio…
Durandal
  • 19,415
  • 2
  • 32
  • 62
2
votes
1 answer

Redshift copy creates different compression encodings from analyze

I've noticed that AWS Redshift recommends different column compression encodings from the ones that it automatically creates when loading data (via COPY) to an empty table. For example, I have created a table and loaded data from S3 as…
2
votes
4 answers

Explanation about hashing and its use for data compression

I am facing an application that uses hashing, but I cannot still figure out how it works. Here is my problem, hashing is used to generate some index, and with those indexes I access to different tables, and after I add the value of every table that…
Eduardo
  • 17,165
  • 20
  • 59
  • 71
2
votes
1 answer

Streaming mode vs block mode

I can't figure out what exactly is the streaming mode offered by modern compression/decompression algorithms (eg ZStandard or LZ4) and how I can exploit it. As an example, suppose I have 4x16KB file. I can (individually) compress each file and…
xmas79
  • 4,570
  • 2
  • 8
  • 32
2
votes
2 answers

Store SHA-1 in database in less space than the 40 hex digits

I am using a hash algorithm to create a primary key for a database table. I use the SHA-1 algorithm which is more than fine for my purposes. The database even ships an implementation for SHA-1. The function computing the hash is returning a hex…
MaNa
  • 41
  • 4
2
votes
0 answers

Does CompressorHttp2ConnectionEncoder can identify already compressed contents?

I have implemented a HTTP/2.0 server which supports compression using Netty 4.1.5.Final.CompressorHttp2ConnectionEncoder class which is used for HTTP data frame compression. It uses content-encoding Transport header field to identify the compression…
2
votes
0 answers

Analyze what compression type use for table

I have SQL Server 2014 database. As size of this database isn't small I want to apply data compression to it. I've used sp_estimate_data_compression_savings to check what how many size I can save and I thought that I should apply that compression…
demo
  • 5,376
  • 12
  • 55
  • 130
2
votes
4 answers

sending large JSON data from android to php server can I compress?

i am sending large datasets in JSON format from my android device to my server (using PHP). I want to keep bandwidth costs down. I am wondering: should I gzip compress the JSON data server side before sending the data? is there a javascript gzip…
Sanjay Bhalani
  • 229
  • 1
  • 18
2
votes
1 answer

Combining lossless data compression algorithms

I was wondering about how far we can take lossless data compression; I wasn't able to find an online simulator of lossless algorithms to perform some empiric testing. I could just make one on my own, but unluckily I don't have enough time in this…
2
votes
3 answers

parsing large compressed xml files, python

file = BZ2File(SOME_FILE_PATH) p = xml.parsers.expat.ParserCreate() p.Parse(file) Here's code that tries to parse xml file compressed with bz2. Unfortunately it fails with a message: TypeError: Parse() argument 1 must be string or read-only…
Marcin
  • 7,560
  • 6
  • 41
  • 48
2
votes
4 answers

Convert high-resolution images to low-resolution

I am doing a web project on media manager. I upload high resolution images and need to convert these images to low resolution, so that the resulting image is compressed into a smaller size. How is this possible using Java? Please post source code,…
naveen
  • 1,413
  • 5
  • 20
  • 27
2
votes
0 answers

Network Data Optimization for Windows-based VPN

I am looking for ways to embed compression in a VPN setup so that users connecting from mobile devices to the VPN server will be able to decrease their bandwidth consumption and save up on their data plans. Does anyone know of a good…
user1151659
  • 132
  • 11
2
votes
0 answers

Large querystring compression

Possible Duplicate: How to compress/decompress a long query string in PHP? I have a huge amount of data inside my subquerystring for tracking needs. I loose a lot of my data because of this too large url missinterpreted by clients or search…
Dark
  • 488
  • 4
  • 12
1 2
3
10 11