Re: ESP32-S3 + w5500 spi
Posted: Sun Mar 03, 2024 3:16 pm
Ethernet is not well documented.
Question: how can I send picture (part of html) ?
I could not find solution, because binary transfer (iobuff) not allowed.
I tried alternativ solution convert it to base64 and send as base64 coded data:
fil$ = file.read$(mit2$)
ret$=|<body><img src="data:image/jpeg;base64,|
ret$=ret$+fil$
ret$=ret$+|" alt="kep" /></body>|
ETHERNET.SERVER.MSGRETURN ret$
It works but only for small picture. Bigger (~90kb) failed.
Interesting ret$ is OK (whole picture)
BTW: I suppose in the help "ethernet.server.return" not OK.
That is why I use "ethernet.server.msgreturn"
Do you have a good ethernet webserver example ? How do you send bigger content ?
Question: how can I send picture (part of html) ?
I could not find solution, because binary transfer (iobuff) not allowed.
I tried alternativ solution convert it to base64 and send as base64 coded data:
fil$ = file.read$(mit2$)
ret$=|<body><img src="data:image/jpeg;base64,|
ret$=ret$+fil$
ret$=ret$+|" alt="kep" /></body>|
ETHERNET.SERVER.MSGRETURN ret$
It works but only for small picture. Bigger (~90kb) failed.
Interesting ret$ is OK (whole picture)
BTW: I suppose in the help "ethernet.server.return" not OK.
That is why I use "ethernet.server.msgreturn"
Do you have a good ethernet webserver example ? How do you send bigger content ?