Android Question How to append image using string builder

JNG

Member
Licensed User
Hi!

I wanted to append image in the following string. how can I
B4X:
Dim sb As StringBuilder
            sb.Initialize
            sb.Append("<html><body>").Append(CRLF)
            sb.Append("<table><tr>").Append(CRLF)
            sb.Append("<caption>").Append(Title).Append("</caption>").Append(CRLF)
-----> Here I wanted to append Image         
            sb.Append("</tr>").Append(CRLF)
            sb.Append(rowdata)
            sb.Append("</table></body></html>")
            Return sb.ToString

regards
jng
 

Star-Dust

Expert
Licensed User
Longtime User
Use Tag IMG
HTML:
<img src="smiley.gif" alt="Smiley face" height="42" width="42">
B4X:
 sb.Append("<img src=""smiley.gif"" alt=""Smiley face"" height=""42"" width=""42"" ")

Does not need CRLF on HTML

For more details: https://www.w3schools.com/tags/tag_img.asp
 
Upvote 0
Top