Comments (3)
The only context MIME that PageBuilder responds to is text/html
. The content for image/jpeg
is not supported. You can respond to jpg files by using the streamFile
member function of the ESP8266WebServer
class in the URI's request handler. (The same for WebServer
class of ESP32 arduino core)
You can refer to the code below. It is a component of FSBrowser.ino
, which is an example of the ESP8266WebServer class.
https://github.com/esp8266/Arduino/blob/1cc6960a5516afb8b244e87574a57986101247bb/libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino#L260-L278
from pagebuilder.
Please make demo for add png and css style files.
from pagebuilder.
You are misunderstanding. I said PageBuilder doesn't support image context replies. If you want to know the program structure of a server-side sketch that can return an image context, catch up on FSBrowser.ino
.
from pagebuilder.
Related Issues (18)
- error: 'PageBuilder' has not been declared HOT 3
- Async Web Server HOT 3
- SetUri not working HOT 3
- Callback runs twice HOT 3
- Is PageBuilder compatible to run with ESPAsyncWebServer ? HOT 2
- using PageBuilder in an own library? HOT 3
- 1.4 does not work with AutoConnect 1.1.7
- Change request - HOT 2
- call of overloaded 'unique_ptr(NULL)' is ambiguous HOT 7
- LittleFS.h missing in PageBuilder1.4.2 HOT 2
- add LITTLEFS for esp32 HOT 2
- From Arduino IDE, FSPage does not show any page HOT 6
- DynamicPage.ino gives an exception when running on esp8266. HOT 3
- Exception when using PageElement with argument instead of chararray on esp8266 HOT 1
- Announcement - Transmission incomplete with large HTML occurs
- Consider Using ArduBadge HOT 2
- Error compiling any examples HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagebuilder.