Transferring images from the server to the client

I need to take a picture from the server to the client. There is a mobile application on which, at the touch of a button, I have to display in ImageView, a photo from a webcam that is contained on the server. I searched and realized that I need to somehow accept and save this image on my phone, and only then output it. Is there an easier way?

Using a TCP connection.

Author: pavlofff, 2017-05-26

1 answers

Option 1. Make the image available via the link http://mysite.ru/imaga/imageABC, then in the android app you just need to read the image from the url. The implementation of the server part can be different depending on how much and how often the images change. Option 2. Pass the card via Rest as an array of bytes

 0
Author: Mikhail Chibel, 2017-05-26 09:08:18