Page 1 of 1

Storing a Large (800kB) Website

Posted: Fri Mar 10, 2017 10:48 am
by aaquilina
Hi,

Can anyone tell me what the best way to store a large website (815kB) in the ESP32's external flash? I assume, hard coding the website directly into a header file would not utilise the external flash and therefore causes the user app not to boot. I have converted the website to a hex dump as recommended by Mr. Kolban, but I'm not really sure what the best way to proceed would be.

Re: Storing a Large (800kB) Website

Posted: Fri Mar 10, 2017 10:59 am
by ChrisHolza
Have you checked https://github.com/espressif/esp-idf/bl ... inary-data?

You'll probably want to use COMPONENT_EMBED_TXTFILES. Works fine for HTML...

Re: Storing a Large (800kB) Website

Posted: Fri Mar 10, 2017 11:05 am
by aaquilina
Excellent. I would probably opt for the COMPONENT_EMBED_FILES because of any escape characters in a string such as a backslash. Thanks! Let me give it a go.

Re: Storing a Large (800kB) Website

Posted: Fri Mar 10, 2017 1:26 pm
by aaquilina
For anyone who comes across this thread, there is a very similar thread which goes into greater detail here:
viewtopic.php?t=676