Sorry, I still don't understand it how to read data into array asynchronously. I looked at the help file but still am not sure. Is this the correct way?
B4X:
Sub Button1_Click
....
stream.WriteBytes(stream.StringToBytes(name))
response.Value = request.AsyncResponse
....
"buffer operation"
....
End Sub
Sub request_Response
Dim buffer(1024) As byte
count = bin.ReadBytes(buffer(),1024)
End Sub