B4J Question Server receives B4J data garbled?

shenmingxue

Member
Licensed User
17882.gif



17882 (1).gif



Server receives B4J data garbled?

What's the best way to do it? Or source code reference?
 

shenmingxue

Member
Licensed User
我懂了。我认为他/她指的是这个例子https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/

我认为GIF中的中文IDE是E编程语言。我不知道有人
I see. I think he/she is referring to this example https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/

I think the Chinese IDE in the GIF is E programming language. I don't know anyone is using it.
我用B4J发送数据转码了 易语言服务器收到乱码?咋办
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
The data in the sample program (if it is the one mentioned by @aeric) is serialized using B4XSerializator. If you want access to the information in your server program, you would need to implement a version of B4XSerializator in the language of the server you are using. A .NET example is provided here (https://www.b4x.com/android/forum/t...lementation-of-b4xserializator.73080/#content) and a PHP version can be found here (https://www.b4x.com/android/forum/threads/b4x-cloudkvs-synchronized-key-value-store.63536/#content). Both projects may be used as a reference to generate a version of B4XSerializator for your language of choice.

One could also convert the data to be transmitted from B4J to JSON first and then transmit it to a server written in a programming language of choice (besides B4X).

Note: the correct link to the PHP version is given by @Sandman below
 
Last edited:
Upvote 1
Top