In my app I have an http server, and http code is saved in a file in a DirDefaultExternal folder.
I used DirDefaultExternal because I need to change content quickly using a text editor.
Everything works fine until I decide to add an image to my webpage saved in the same folder of html file, because I dont know how to point to image inside html code.
I searched inside forum and I tried some solution without success...
I used this code :
but in webpage, only text is showed
I used DirDefaultExternal because I need to change content quickly using a text editor.
Everything works fine until I decide to add an image to my webpage saved in the same folder of html file, because I dont know how to point to image inside html code.
I searched inside forum and I tried some solution without success...
I used this code :
This in b4x http server to send html file::
SendPage(File.ReadString(File.DirDefaultExternal,"pagina.html"))
This is simple html code I tried to send image:
<!doctype html>
<html>
<head>
<title>Title</title>
</head>
<body>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<p><img src= 'file://${File.DirDefaultExternal}/image.jpeg' alt="logo" width="30%" height="30%"/></p>
</body>
</html>
but in webpage, only text is showed