'Should client send the whole image or it's reference to server?

I have a service A, an api gateway B and a client C, client C will send request with an image to B, B will send it to A and A will process that image. So should C send the whole image to B in order that A receives the image directly from B (option 1) or C send the reference of the image (image url) in order that A get the image from the image url for processing (option 2) ? Which option do I need to have higher performance ?

2 options



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source