Compressed data from miniz gets corrupted when saving to storage
Posted: Tue Feb 20, 2024 11:28 pm
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 storing is not what I'm getting. Usually its couple of bytes missing or added to compressed data when I'm saving.
I tried using save_to_blob which also has the same issue.
I'm using an esp32S3 wroom.
Any help would be much appreciated
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 storing is not what I'm getting. Usually its couple of bytes missing or added to compressed data when I'm saving.
I tried using save_to_blob which also has the same issue.
I'm using an esp32S3 wroom.
Any help would be much appreciated