This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

gunzip http response
#2
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
io.writefile('/tmp/download.gz', byteArray)
os.execute('gunzip /tmp/download.gz')
local handle = io.popen('/tmp/download')
local firstByte = string.byte(handle:read(1))

Thanks
Reply


Messages In This Thread
gunzip http response - by spyder - 17.09.2022, 15:18
RE: gunzip http response - by spyder - 19.09.2022, 05:35
RE: gunzip http response - by admin - 19.09.2022, 06:39

Forum Jump: