As shown in the following pictures.
When my client sends a binary JSON file to the server, the server keeps blocking and receiving an empty binary file.I personally think that it may be a problem with the parameters in the "rev" function, but I cannot think of a good solution.
[This is main document](https://i.stack.imgur.com/9nczj.png)
[This is client](https://i.stack.imgur.com/OCko5.png)
[This is server socket](https://i.stack.imgur.com/5embJ.png)
[This is result](https://i.stack.imgur.com/js05h.png)
Replacing part of the code with the code shown in the following pictures can solve the problem, but it is obviously not wise This is my attempt