How to commit a image via gitlab commit API?

Does it work with the graphQL API ?

I can commit any text files via the graphQL API. But when I commit an image or some base64 encoded data, it doesn’t show the image, only the raw base64.

Note : when adding encoding: "base64" to a commit action, gitlab returns an error saying that I should use BASE64. So I uppercase it and I can commit via the graphQL API. But gitlab doesn’t seems to recognize the file as an image. I got the raw string as a base64. (Something like iVBORw0KGgoAAAANSUhEUgAABBAAAAQRCAMAAACn54tnAAAAA3NCSVQICAjb4U/gAAAAIVBMVEUjHyD///+9u7zq6ene3t…)

I tried with and without prefixing the content by data:image/jpg;base64,.
Thanks for your response!