How to include images in the web page sent to WebUI? #510
|
Hi Is it possible to just include the path to an image or does the image need to be converted to base64 before it can be included in the web page sent to WebUI. I have tried different paths but the image is not displayed so I am assuming it must be included in the web page as base64 encoded text. Is that the only way to include images? Thanks, |
Answered by
AlbertShown
Oct 25, 2024
Replies: 2 comments
|
webui works like any normal web server, so you can do it in any ways you want, file path, base64, or even binary embedded in the compiled program. If file path did not work, it mutely because you did not setup the root path. |
0 replies
Answer selected by
dcipher
|
See this example: https://github.com/webui-dev/webui/tree/main/examples/C/text-editor |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
webui works like any normal web server, so you can do it in any ways you want, file path, base64, or even binary embedded in the compiled program.
If file path did not work, it mutely because you did not setup the root path.
Documentation: https://webui.me/docs/2.5/#/?id=set_root_folder