embedded images in html file with xxd ?
Posted: Sat Jan 28, 2017 1:07 pm
I'm working on an embedded esp32 design using one of the webserver examples that is included in the esp-idf examples. I'm able to get device into soft AP mode and display a simple webpage. Now that I have that working, I'm trying to build a page with a graphic.
I'm using the linux hex tool "xxd -i " to convert the html file into a hex dump array for the C include file. It works fine if the document is just HTML, but I'm stuck on trying to include an image.
I went as far as using xxd on both the HTML file and the image file and using "netconn_write" to write out both files. I also tried combining them into a single hex dump file.
At this point I'm not sure how to proceed, am I taking the wrong approach with this?
Any help is greatly appreciated.
I'm using the linux hex tool "xxd -i " to convert the html file into a hex dump array for the C include file. It works fine if the document is just HTML, but I'm stuck on trying to include an image.
I went as far as using xxd on both the HTML file and the image file and using "netconn_write" to write out both files. I also tried combining them into a single hex dump file.
At this point I'm not sure how to proceed, am I taking the wrong approach with this?
Any help is greatly appreciated.