Hi!
I have image and some related text to this image. I wanted to share this with fileprovider how can I achieve it.
Dim Bmp As Bitmap
Bmp.InitializeMutable(320dip,300dip)
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "temp.png", True)
Bmp.Initialize(File.DirAssets,"b4a.png")
Bmp.WriteToStream(Out, 100, "PNG")
Out.Close
Dim html As String = $"
<p>This is a test to send text and image both</p>
<img src='file://${File.Combine(File.DirInternal, "temp.png")}'/>
<p>more text</p>
"$
File.WriteString(File.DirInternal,"html1",html)
regards
jng
I have image and some related text to this image. I wanted to share this with fileprovider how can I achieve it.
Dim Bmp As Bitmap
Bmp.InitializeMutable(320dip,300dip)
Dim Out As OutputStream
Out = File.OpenOutput(File.DirInternal, "temp.png", True)
Bmp.Initialize(File.DirAssets,"b4a.png")
Bmp.WriteToStream(Out, 100, "PNG")
Out.Close
Dim html As String = $"
<p>This is a test to send text and image both</p>
<img src='file://${File.Combine(File.DirInternal, "temp.png")}'/>
<p>more text</p>
"$
File.WriteString(File.DirInternal,"html1",html)
regards
jng