Questions tagged [data-compression]
156 questions
0
votes
2 answers
Format for transmitting live Accelerometer/Compass data over network
What's the best way to transmit a history of accelerometer/compass data to a server?
I have a very basic Android application that transmits GPS point data to a web server. I would like to now include accelerometer/compass data along with these GPS…
![](../../users/profiles/457850.webp)
dtbaker
- 3,267
- 4
- 23
- 29
0
votes
1 answer
How do I gzip my html source
I would like to gzip the html sources of my webpages, what's the best way to do it on a lighttpd/php5 server.
I have tried to do it by editing my php.ini file with:
zlib.output_compression = On
zlib.output_handler = On
but it seems to be a…
![](../../users/profiles/83475.webp)
Roch
- 20,993
- 27
- 74
- 118
0
votes
2 answers
Programmatically add AVI file header to video stream
I have a capturing device (analogue to digital converter: AverMedia USB Capture Card).
When I want to record video using DirectShowLib in C#, I only receive frames. I am able to record frames and play the file using RawVideo Player. How can I create…
![](../../users/profiles/2176486.webp)
Oyle Iste
- 1
- 2
0
votes
2 answers
Integer compression in java
I have a sequence of Integers in the following format:
Integer1 Integer2 Integer3 Integer4 Integer5 ....
Each four consective integers corresponds to values of a single record. So, I cannot really order them.
What would be the best way to compress…
![](../../users/profiles/1367604.webp)
DotNet
- 667
- 2
- 6
- 22
0
votes
1 answer
Compress in-memory cached objects
I'm building a enterprise scale MVC ASP.NET application which store large objects on to memory cache using enterprise library 4.1.
The object sizes range from 18-22MB for each user. There could be 530 concurrent users at any time. I'm bit worried…
![](../../users/profiles/656348.webp)
Nil Pun
- 16,019
- 34
- 150
- 277
0
votes
3 answers
How do I compress an image with Run-Length Encoding using C#?
How do I compress an image with Run-Length Encoding using C#? Are there any available libraries to support this?
Does Run-Length Encoding only work on bitmapped images? If so, How will I convert image types to bitmap using C#?
I'd also like to ask…
![](../../users/profiles/919789.webp)
user919789
- 161
- 4
- 7
- 18
0
votes
1 answer
Database Backup, drop transaction logs, shrink, drop nonclustered indexs, rebuild tables Fill factor 100%, compress
Let me start by saying I am a developer and I am just taking database backups for bug testing/fixing.
I want to get the size of the backups I am taking down because at the moment it would be faster getting the backups posted to me than transfering…
![](../../users/profiles/802599.webp)
user802599
- 630
- 2
- 10
- 30
0
votes
4 answers
Repetition-based, pattern-based data compression algorithm
Suppose I have the following string:
ABCADCADCADABC
I want to compress it by finding repeating substrings.
What's an algorithm that gives the optimal compression?
In the above example it should return
AB*1 CAD*3 ABC*1
For comparison, a greedy…
![](../../users/profiles/4234.webp)
dreeves
- 25,132
- 42
- 147
- 226
-1
votes
1 answer
Creating a Non-greedy LZW algorithm
Basically, I'm doing an IB Extended Essay for Computer Science, and was thinking of using a non-greedy implementation of the LZW algorithm. I found the following…
![](../../users/profiles/10229446.webp)
saucetin
- 13
- 1
-1
votes
1 answer
Can't Upload 5MB - 10MB image file to Lambda through API gateway
I am trying to upload 5MB image to aws lambda through api gateway.
I need to pass the file content as binary or buffer without any conversion. But API gateway converts the input as base64
by default and the converted base64 text is 7MB. As the data…
-1
votes
1 answer
What is the best lossless compression algorithm for random data
I need to compress a random stream data like [25,94,182,3,254, ...]. The number of data are close to 4 million. I currently only get 1.4x ratio by Huffman code. The LZW algorithm I tried is take too much time to compress. I hope to find out an…
![](../../users/profiles/4265612.webp)
Vincent 炜森
- 83
- 2
- 6
-1
votes
1 answer
What is the difference between shannon fano and huffman algorithm?
It look likes almost similar to me except top down and Bottom-Up parsing . Can anyone explain ?
![](../../users/profiles/5277799.webp)
Saifur Rahman Bhuiyan
- 37
- 1
- 1
-1
votes
4 answers
Determining equality for unknown types
I need to check the given instance is matching with the collection (Both are unknown types).
Have a look
void Main()
{
// Employee "John" Object got from Service Layer #1
Object obj1 = Client1.GetObject("John");
// Employee "John"…
user6060080
-1
votes
1 answer
How to put binary array into binary file
I have an array:
int a[5] = { 1, 0, 0, 1, 1 };
When using a loop to put every element into a text file, the size of the file will be 5 bytes. So I want to put the five elements into a binary file so that the size is 5 bits. How can I do that?
![](../../users/profiles/4259059.webp)
Varrian
- 191
- 1
- 12
-1
votes
1 answer
Will it be a good idea to implement compression algorithm as per my data pattern?
I am having some data to compress now I know about the redundancy and pattern of data but the standard algorithms like lz4 doesn't know about the data pattern so can they compress my data better or I do it better due my algorithm to its specific to…
![](../../users/profiles/2859785.webp)
Yashdeep Hinge
- 253
- 1
- 13