esp32 img tag #118
-
I have a website on which the img tag is added. The entire website is stored in the custom partition named "stiff". The request for loading image is executed properly but image is not shown (just white rectangle). Here is my code:
spiffs_create_partition_image(spiffs ../webpage FLASH_IN_PROJECT INCLUDE_DIRS "." EMBED_FILES /images/Ball.jpg)
extern const unsigned char ball_start[] asm("_binary_Ball_jpg_start");
idf_component_register(SRCS "station_example_main.c"
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you need to set the correct mime type for images |
Beta Was this translation helpful? Give feedback.
you need to set the correct mime type for images
esp32-course/_15_Internet_Server/v14/_11_web_site_10_change_networks/main/main.c
Line 51 in 8dd1dd1