Hey @astrumax hope all is well. Welcome to the community.
A few things that I want to mention here - storing images in the database is not always the best way to go about it. What you want most of the time is to store them in some sort of storage and have a way to link them with URLs. This way you would have to store the references in the database, instead of images themselves.
A solid example of doing it this way could be found here, they are using Supabase for storing files alongside their embeddings: