Sending Image to MobileApp in another server

One of our core system has been integrated with a mobile app recently where we need to share images which are kept in our repository to Mobile app which is residing in another server in the same network. When we analysed solution

  1. Send image as byte[] over the api which is getting used to call
  2. Host image in one of the container we are running and share the image url over api

Which one is the right approach to go on with, or is there any other approach on which we can have a better solution ?

1 answer

  • answered 2018-05-16 06:13 Vivek Shah

    1.Upload image into server using mutipart.

    2.Save image into server and make the path of it.

    3.You can use then anywhere this byte of path.

    Hope it helps