Page 1 of 1

esp_http_server + zip

Posted: Fri Feb 02, 2024 5:58 am
by malachib
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.

Re: esp_http_server + zip

Posted: Thu Feb 08, 2024 4:04 am
by malachib
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?