put image on webpage/WiFiManager/ESP8266WebServer/DNSServer
Posted: Thu May 12, 2016 4:14 pm
how could I post an image on a page through the ESP8266, i wont have an sd card but some eeprom will be available, or could it be saved in the sketch somewhere?
``String page = FPSTR(HTTP_HEAD);
page.replace("{v}", "MoCa WiFi Setup");
page += FPSTR(HTTP_SCRIPT);
page += FPSTR(HTTP_STYLE);
page += _customHeadElement;
page += FPSTR(HTTP_HEAD_END);
page += "<h1>";
page += _apName;
page += "</h1>";
page += <img src="Pictures/logo.jpg"/>;
//page += F("<h3>WiFiManager</h3>");
page += FPSTR(HTTP_PORTAL_OPTIONS);
page += FPSTR(HTTP_END);
// server->send(200, "image/jpeg", logo);
server->send(200, "text/html", page);
``
im really just editing the WiFiManager.CPP code trying to attach the project logo to the page, stuff was only editte
``String page = FPSTR(HTTP_HEAD);
page.replace("{v}", "MoCa WiFi Setup");
page += FPSTR(HTTP_SCRIPT);
page += FPSTR(HTTP_STYLE);
page += _customHeadElement;
page += FPSTR(HTTP_HEAD_END);
page += "<h1>";
page += _apName;
page += "</h1>";
page += <img src="Pictures/logo.jpg"/>;
//page += F("<h3>WiFiManager</h3>");
page += FPSTR(HTTP_PORTAL_OPTIONS);
page += FPSTR(HTTP_END);
// server->send(200, "image/jpeg", logo);
server->send(200, "text/html", page);
``
im really just editing the WiFiManager.CPP code trying to attach the project logo to the page, stuff was only editte