As people mentioned, for larger image files, it is not recommended to store the file directly in the table, but rather just store the reference.
If anyone is interested, I have developed a small, open source tool that exposes a REST API and that comes with a WebUI to do exactly that https://github.com/SW-CD/MediaHub_OSS/tree/main