Archiving without compression

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
newb
Posts: 33
Joined: Wed Jan 10, 2018 8:19 pm
Location: Bulgaria

Archiving without compression

Post by newb » Thu Jun 18, 2020 1:11 pm

Hi,
I'm creating a time-lapse script where I take many pictures with esp32-cam throughout the day and I intend to upload them to a local ftp server in the evening. I recall that uploading many files is slower than uploading one single big file (provided the total size is the same). It seems there're micropython modules only for decompression, but not for compression. Is there any way I can join many files, even without compressing them, for the sole purpose of uploading them at once. The project will be battery dependent, so I need to optimise speed of upload (using wifi).

User avatar
jimmo
Posts: 1769
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Archiving without compression

Post by jimmo » Mon Jun 29, 2020 7:02 am

newb wrote:
Thu Jun 18, 2020 1:11 pm
I recall that uploading many files is slower than uploading one single big file (provided the total size is the same).
That shouldn't be the case, unless your files are tiny and the connection time and HTTP headers become signification, but for camera images this is very unlikely to be the case.

Post Reply