Display image byte array from Web Server input

I would like to be able to customize a logo to display on an OLED screen, but I would prefer not to relay on a web connection to download the online image from a server.

Instead, I would prefer to allow the user to use a tool like image2cpp to convert an image to a byte array and then to paste this array into an input box on the internal Web Server interface run from the ESP32 itself.

I would then like this byte array to be rendered onto the OLED.

So, I guess my questions are:

  • How can a draw a byte array to the screen using lambda commands (possible using draw_pixels_at)?
  • How can I store these bytes as a variable within the YAML and use it later in the display code
  • How can I allow these stored bytes to be overridden from the WebUI by uploading a different string of bytes?