17.09.2022, 15:18
Hello,
Has anyone unzipped a gzip byte array in Lua?
Thanks!
Has anyone unzipped a gzip byte array in Lua?
Thanks!
gunzip http response
|
17.09.2022, 15:18
Hello,
Has anyone unzipped a gzip byte array in Lua? Thanks!
19.09.2022, 05:35
For now I am using the filesystem, but I am worried of wearing out the SD card by unzipping a file from 300kB -> 5MB every 10 minutes.
Is there a way of doing this in memory? Is there a part of the filesystem in memory? Code: --byteArray downloaded from website Thanks
19.09.2022, 06:39
/tmp is RAM-based file system so you can safely write there as many time as needed. Just make sure to remove any unused files or you can run out of memory in certain cases.
Another option is to use this library: https://raw.githubusercontent.com/hamish...i-zlib.lua Add is as user library named zlib. Usage example: Code: zlib = require('user.zlib') |
« Next Oldest | Next Newest »
|