I upload my image with a POST, and subsequently read it back with a GET. Looking at the GET response in the Outline tab, I see the correct metada: contentType: image/jpeg, contentLength: 86231. In the HTML tab it shows me my image. Everything agrees, including the size of the image.
Since I want everything automated, I want to compare the received image with the original image. I wrote a Groovy script like this: