|
Forum Index : Microcontroller and PC projects : WebMite with local pictures
| Author | Message | ||||
| PilotPirx Senior Member Joined: 03/11/2020 Location: GermanyPosts: 105 |
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 Senior Member Joined: 03/11/2020 Location: GermanyPosts: 105 |
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: 8305 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |