I used this answer to make apex rest resource. It works perfectly for small images, but when I want to upload a bit larger image, the bottom part just gets cut.
Request went well and the image was attached, but when I preview it, I only see the top part of the image:
And when I look at the attachment details I see that this image is only 215Kb:
When I look at the same image on my machine it says that it is 1.1Mb:
So the question is:
What can be the reason of such behaviour?