Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By mbenitez01
#78077 actually..this is a piece of cake... you can try servestatic or streamfile...both worked like a charme for me (after a cuople of frustrated tryes, must be honest with you)
try either or both of these...

void foto1(){
Serial.println("streaming una foto con filestream");
File file = SPIFFS.open("/foto1.jpg", "r");
server.streamFile(file, "image/jpg");
file.close();
}

void foto2(){
//caution: you MUST use the WHOLE path as url..
Serial.println("streaming una foto con serveStatic");
File file = SPIFFS.open("/foto2.jpg", "r");
server.serveStatic("/foto2.jpg",SPIFFS,"/foto2.jpg");
file.close();
}