If you need to send anything other than the image, like if you need json along with the image, then base64 is your best bet. Otherwise I would submit it as a binary. When you encode as base64, it ultimately expands the size by quite a bit, and you lose the benefit of image compression.