Compare two images - Builder

We have a requirement in which a user will upload an image and we must search the database to see if the image uploaded by the user and the image in the database are the same or not.

I have tried Base64 format but it is not working and their is alternative approach like if we send the request in postman we are getting content-length in response header but in cloud we don’t have any option for it

So do we have any other approach?