I have a WebServer on a hydra+ and I want to try to put some images inside a html code. I added the image in Resources, but I don’t know how to call the image in html. This is my code
you need to realise that you will get TWO requests at approximately the same time, as Cowboy says. First, you will get the HTML page request - and you will respond with the HTML content including the image. Second you’ll get a specific request for the image, and that is the point you need to respond with the image binary contents. So in your current code, the only thing you do is respond with a HTML page. You need to start interpreting the string path that is fed to your handler and responding appropriately.