Hello ,
I'm trying to implement the asyncstream prefix mode to send files over a socket, my server side is a Delphi application, the client side is my b4a app.
In delphi I always send the length of the data first followed by the data. In b4a I always get the following runtime error :
'Error: (RuntimeException) java.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol. '
I've tried to switch the Endianness but with no effect.
When I send the length in my server app , do i have to add a carriage return + linefeed or not ?
I'm trying to implement the asyncstream prefix mode to send files over a socket, my server side is a Delphi application, the client side is my b4a app.
In delphi I always send the length of the data first followed by the data. In b4a I always get the following runtime error :
'Error: (RuntimeException) java.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol. '
I've tried to switch the Endianness but with no effect.
When I send the length in my server app , do i have to add a carriage return + linefeed or not ?