Cheers @Adam_Holt !
Unfortunately (or fortunately) this was my first integration of the aws-sdk. I don’t have the exploratory code I was working on from earlier but I did notice that converting the image from base64 from a buffer
Body: Buffer.from(image, 'base64')
may be driving the issue. I was going to try tinkering with this conversion before sending the image to the Realm function.
Not sure if that helps (or gives you any thoughts) but will keep trying to find a better solution. If I do, will definitely share it here.