2019-02-05 09:31 AM
we are design the iot based environmental parameter data logger where the data received from the sensor & same data should be zipped and transmit to server , am struggling to do zipping the data , please suggest any library which will do zipping data.
2019-02-05 10:35 AM
As I recall, Zip uses significant RAM for dictionary. Better stay with data in binary (and not ascii text) form and find out a way to compress it. For example, store the information with one absolute followed by relative more compact format. (store the delta)
Zip will be difficult to implement I guess.
Otherwise, few years back, bumped into string compressor here:
lz-string
=========
LZ-based compression algorithm for JavaScript
## Install via [npm](https://npmjs.org/)
```shell
$ npm install lz-string
```
## Home page
Home page for this program with examples, documentation and a live demo: http://pieroxy.net/blog/pages/lz-string/index.html
2019-02-05 10:58 AM
zlib and more generically deflate and inflate should be usable.
miniz
2019-02-05 11:01 AM
Problem is ZIP is ubiquitous
I can do CAB files
2019-02-06 06:22 AM
Although far less efficient than newer compression algorithms, you may want to consider ncompress. The source is public domain. I have adapted it successfully for use on a microcontroller with only 64K RAM.
http://ncompress.sourceforge.net/
James