Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : WebMite with local pictures
Author | Message | ||||
PilotPirx Regular Member Joined: 03/11/2020 Location: GermanyPosts: 68 |
Hi, i try to show a local picture on drive A: in index.html but it did not work with WebMite. The same html code works well in a browser. The HTML is just a simple <img src="A:/picture.jpg" alt="sunflower" align="middle" width="100" height="66" border="0" > Does it works only with a link like in the watering demo? Thanks for help, Peter |
||||
PilotPirx Regular Member Joined: 03/11/2020 Location: GermanyPosts: 68 |
Sorry, i have to read the whole manual. I have to add s$ = LGetStr$(buff%(), p% + 4, t% - p% - 5) IF s$ = "/" THEN WEB TRANSMIT PAGE a%,"index.html" ELSE IF s$ = "/sunflower100x66.jpg" THEN WEB TRANSMIT FILE a%,"sunflower100x66.jpg","image/jpeg" ENDIF in SUB WebInterrupt Problem solved |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
Reading the manual is often a good thing to do, I've discovered. Even then I get it wrong.... :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Print this page |