Java – what is the best way to send an image from an Android device to a server for processing and sending the results back?

What kind of server-side image processing is convenient to implement?

In addition, if I install matlab on the server, what method can I have Android devices send images to the server running Java (or PHP) code, then let the Java (or PHP) code execute matlab scripts and reply results from there?

Thank you for your attention

Solution

I would imagine it as follows:

>Upload images using fileentity (using Apache HTTP libraries) as part of multiparty and as part of httppost. > The server will not block this post and will return immediately You can perform processing on the background thread on the server. > Upon completion, the server passes a C2DM message containing the location of the processed image. > The client downloads the processed image

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>