Upon looking through the posts in order to find out how in B4A to download and read a file, I have noticed that there may be some issues when importing the data.
In my data file I have 0-255, many of these fall outside of the standard ASCII table, some would call it extended ASCII.
My hardware which is coded using a different Basic compiler, requires that I send it a 2k data bundle created as a file (e.g. 123.ABC) by a VB App I've written.
This data file contains bytes 0-255 in value and I need to read this file which is located on my webserver (http://mydomain.com/123.ABC).
The B4A App which does all the control of the hardware via bluetooth (which is working perfectly), also needs to be able to read the data file and pass it to the hardware through the transparent serial connection that I'm using..
So basically and in as simple form as possible, I need to read from the web location, load that data in to an array that I can parse with the B4A App and send to the hardware.
Erel has given me this example, but I am not sure how to implement it.
Will that string give me access to the full 0-255 byte?
In my data file I have 0-255, many of these fall outside of the standard ASCII table, some would call it extended ASCII.
My hardware which is coded using a different Basic compiler, requires that I send it a 2k data bundle created as a file (e.g. 123.ABC) by a VB App I've written.
This data file contains bytes 0-255 in value and I need to read this file which is located on my webserver (http://mydomain.com/123.ABC).
The B4A App which does all the control of the hardware via bluetooth (which is working perfectly), also needs to be able to read the data file and pass it to the hardware through the transparent serial connection that I'm using..
So basically and in as simple form as possible, I need to read from the web location, load that data in to an array that I can parse with the B4A App and send to the hardware.
Erel has given me this example, but I am not sure how to implement it.
B4X:
Dim lines As List = File.ReadList(...)
Dim s As String = File.ReadString(...)
Will that string give me access to the full 0-255 byte?