esp_http_server + zip

malachib
Posts: 18
Joined: Tue Aug 28, 2018 9:06 am

esp_http_server + zip

Postby malachib » Fri Feb 02, 2024 5:58 am

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.

malachib
Posts: 18
Joined: Tue Aug 28, 2018 9:06 am

Re: esp_http_server + zip

Postby malachib » Thu Feb 08, 2024 4:04 am

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?

Who is online

Users browsing this forum: No registered users and 364 guests