Read/Write jpg from/to SPIFFS

Hi there,
i want to write a jpg from a ESP32-Cam to SPIFFS and later sending the jpg by eMail.
wite/read txt to/from SPIFFS ist clear but:
How can i write/read jpg to/from SPIFFS?

Man thanks for any hints.

Kind regfards,

Hi Misterixx!
I am afraid that the cheapness of ESP32-Cam is compensated by the complexity of the software development. Theoretically, you can understand all the source codes. But how long will it take? And the one who will finish the code, will he want to share for free? :wink:
I understand you want to do something like this: https://www.instructables.com/id/Security-3GGPRS-Email-Camera-With-Motion-Detection/ ?