Maybe you can use this from the server actions of outsystems

Look how to get it

You will give 2 binary data and it's going to compare if the two binary data or the 2 pictures are equal.

I have done a little exercise and it works, but with the one from Ajit, you can see and test.
Let me know if I help you!
Kind Regards,
Márcio