Hi All!
I used the b4xserializator with success between b4a and b4j, while there was only one connection. But I wanted rewrite my program to multiple connection, so I follow @Erel example CCTV.
In my case the B4A send data to B4j, where I got error (in b4j):
I have the usual type
The line, where the error happen looks like (client.bas, b4j):
I feel that this error happened only because this sub moved from main code module to client class module (in B4J).
What is the right approach using b4xserializator with structure in class?
thanks
Steven
I used the b4xserializator with success between b4a and b4j, while there was only one connection. But I wanted rewrite my program to multiple connection, so I follow @Erel example CCTV.
In my case the B4A send data to B4j, where I got error (in b4j):
B4X:
client._astream_newdata (java line: 51)
java.util.zip.ZipException: incorrect header check
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
...
B4X:
'B4A LSZAMLAv3.b4a (Main)
Sub Process_Globals
...
Type MyMessage (Command As String, Timestamp As String, xml As String)
End Sub
'B4J lszamlakomm.b4j (Main)
Sub Process_Globals
Type MyMessage (Command As String, Timestamp As String, xml As String)
...
End Sub
B4X:
Private Sub AStream_NewData (Buffer() As Byte)
Dim mm As MyMessage = ser.ConvertBytesToObject(Buffer) '<---- error
What is the right approach using b4xserializator with structure in class?
thanks
Steven
Last edited: