Hi,
I am accumulating a bunch of JPG on a SD card via a camera and would like to serve them up in one big zip file/mime for download, preferably made on the fly (I don't need a zipfile on the SD card). Zip format seems to make sense. I don't need compression really, just a file container format. Please make recommendations. zlib feels like overkill.
esp_http_server + zip
Re: esp_http_server + zip
Anything?
I am trying to do a multipart/mixed "download" (usually used for an upload) as an alternative
It almost works. Having trouble with the parts' binary content getting parsed as text on the client side
I'd still prefer the zip approach
EDIT: After learning about the "central directory" requirement to retain all your filenames, I can see zip won't really stream comfortably. So let me adjust my question - what's the prescribed way to download a whole bunch of files via ESP-IDF http - probably a few MB worth, in one go?
I am trying to do a multipart/mixed "download" (usually used for an upload) as an alternative
It almost works. Having trouble with the parts' binary content getting parsed as text on the client side
I'd still prefer the zip approach
EDIT: After learning about the "central directory" requirement to retain all your filenames, I can see zip won't really stream comfortably. So let me adjust my question - what's the prescribed way to download a whole bunch of files via ESP-IDF http - probably a few MB worth, in one go?
Who is online
Users browsing this forum: Google [Bot] and 340 guests