Android Question String to Bytes

zapadepowday

New Member
Licensed User
Longtime User
Hi, New to B4a and have 2 related problems.
1].I need to convert a string to a byte array to send over the network as the server I am writing to expects the data chunk as bytes. I cannot seem to find a way to make this work.
2] I cannot seem to get the writebytes command to send anything, even though the server connects.
Can somebody point me in the right direction with writing Bytes over the network with a simple example.
My background is in assembler so any help with this excellent language would be appreciated.
 
Top