1. Android as Client
2, PHP as a service-side
Now 1 to return binary or decimal data to 2 How should the data format be returned more reasonable?
Reply content:
1. Android as Client
2, PHP as a service-side
Now 1 to return binary or decimal data to 2 How should the data format be returned more reasonable?
In this world there is a data exchange format called:JSON; There is an Internet software architecture called:RESTful;
The question is similar to the one I asked before,
Paste the link http://segmentfault.com/q/1010000000375424
Any file to the last or byte storage, stored values are still numbers, and eventually there are pdf,jpg, and so the difference is only because the software when the parsing strategy is different. So, as long as your server-side and the client unified parsing logic can be. Use post to post a file to the server side.
Let me mend a knife.
What is the purpose of solving the main problem first?
You want to transfer binary data, so that the middle do not understand the HTTP grab packet?