The task is this: you need to organize the turnover of pictures (avatars) for the profile. In the REST project on Android. The dilemma is which path to choose: 1) Send pictures to JSON as a string (server-android in both directions); 2) In JSONʻe, send only image addresses, and load them as separate URL requests. I would like to know the opinion of the pros that it is preferable?

    1 answer 1

    To transfer a picture with text is a bad idea. The less information is transmitted, the better.

    Wherefore, pass the URL of the image and ship it separately.