Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:49 27 Nov 2024 Privacy Policy
Jump to

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: Germany
Posts: 68
Posted: 06:40pm 13 Sep 2023
Copy link to clipboard 
Print this post

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: Germany
Posts: 68
Posted: 02:49pm 14 Sep 2023
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 6798
Posted: 03:12pm 14 Sep 2023
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024