Fixed it. Compressed data has got null terminators in between. when we save the compressed data as string, it saves the data as string until it sees the first null terminator.
I used set blob to save the data (I was not using it correctly before) and it fixed the issue
Search found 4 matches
- Fri Feb 23, 2024 4:24 am
- Forum: General Discussion
- Topic: Compressed data from miniz gets corrupted when saving to storage
- Replies: 1
- Views: 456
- Tue Feb 20, 2024 11:40 pm
- Forum: General Discussion
- Topic: Using Miniz in user application
- Replies: 2
- Views: 530
Re: Using Miniz in user application
I ended up copying miniz (.c and .h) files in to my application and it works
- Tue Feb 20, 2024 11:28 pm
- Forum: General Discussion
- Topic: Compressed data from miniz gets corrupted when saving to storage
- Replies: 1
- Views: 456
Compressed data from miniz gets corrupted when saving to storage
Hi, I am using miniz to compress a string and I want to store the data in to storage and read back back to decompress it. Currently I'm using set_string and get_string to write and read the data to storage. But my compressed data gets corrupted when saving to the storage, means the data that I'm sto...
- Mon Feb 19, 2024 12:40 am
- Forum: General Discussion
- Topic: Using Miniz in user application
- Replies: 2
- Views: 530
Using Miniz in user application
Hi,
I am using an esp32s3-wroom module for my project. Currently I'm facing CMake linking issues on miniz which I want to use it on my project.
I can see the miniz (.c and .h) files inside flasher_stub folder inside the esptool. How do I link this to my user application?
Thanks
Jithin
I am using an esp32s3-wroom module for my project. Currently I'm facing CMake linking issues on miniz which I want to use it on my project.
I can see the miniz (.c and .h) files inside flasher_stub folder inside the esptool. How do I link this to my user application?
Thanks
Jithin