I created an app with B4J that exchanges data with the client, with the stream of binary objects (see example:https://www.b4x.com/android/forum/t...device-desktop-and-web-reports.37254/#content)
I need to be able to send data to the server several times, but this is not possible because the stream is closed and does not allow sending data.
How can I manage the stream so that it closes?
Here's an example of code that I want to achieve
in this example, it is sent only the first call.
I hope I was clear.
thank you
I need to be able to send data to the server several times, but this is not possible because the stream is closed and does not allow sending data.
How can I manage the stream so that it closes?
Here's an example of code that I want to achieve
B4X:
Sub Handle(req As ServletRequest, resp As ServletResponse)
for i = 0 to 10
dim myObject as CMyObject
myObject.inizialize
myObject.calulate(params...)
SendObject(myObject, resp.OutputStream)
next
End Sub
in this example, it is sent only the first call.
I hope I was clear.
thank you