Hi All
I am looking to allow the user to export a HTML file from DirAssets to the SD Card.
In Erel's Texteditor example the following line converts the text to a byte array and is then streamed.
The following is what I have tried without success. [Plus many other variations and searches that failed.]
Could someone please enlighten me as to the correct format.
Regards Roger
I am looking to allow the user to export a HTML file from DirAssets to the SD Card.
In Erel's Texteditor example the following line converts the text to a byte array and is then streamed.
B4X:
Dim b() As Byte = txtField.Text.GetBytes("UTF8")
The following is what I have tried without success. [Plus many other variations and searches that failed.]
B4X:
Private HelpByte() As Byte = File.DirAssets&"/Helpfile.html.getbytes("UTF8")"
Could someone please enlighten me as to the correct format.
Regards Roger