How to send an image from Android client to Node.js server via HttpUrlConnection?

I am trying to send an image to the server using HttpUrlConnection, because it’s recommended by Google. I decided to convert the image into Base64 string and send it to the server where I decoded it into .jpg file. But this method is only feasible with small-sized thumbnails and I cannot send a full-sized images.