What is the best way to send an image from an Android device to a server to process and send the results?

What kind of server-side processing processing would be convenient? I would especially like to know if this is possible using Java or PHP?

Also, if I have MATLAB installed on the server, is it possible to somehow force the Android device to send the image to the server with Java (or PHP) code, and then make the Java (or PHP) MATLAB code and then report the results from there?

Thanks for watching.

+4
source share
2 answers

I would suggest that this is so:

  • Download the image (using Apache Http libraries ) using FileEntity as part of MultipartEntity as part of HttpPost .
  • The server does not block this post and returns immediately. You can perform processing on a background thread on the server.
  • The server completes the C2DM message after completion with the location of the processed image.
  • The client downloads the processed image.
+1
source

Just write the image bytes for output in android and get them on the server side and do what you want to do with the image through your scripts.

0
source

Source: https://habr.com/ru/post/1399840/


All Articles