How do you create an Image/video database that can store and retrieve data?

hi, im trying to create an app in which the user can upload a series of images and videos, name it and then store it in a database. When the user wants to retrieve a image or video, they can type in the name of the named image and then retrieve it from the database and display it on the screen. the database im using right now is TinyDB. however, when i try using the app through the AI companion, the name of the images keeps messing up, and therefore im unable to retrieve the image based on its name as it wont display me the correct image, even though i didnt type the name wrong. i think i might have had a coding error, or forgot to add some blocks

apart from that, i also want to know if adding 100+ images into TinyDB is able to be achieved, or does it have some sort of limit? some extra features i want to add, but i dont know how, is to be able to get a sort of listviewer, in which the user can actually select the name of the image that they saved into the database, and display it instead of typing out the name. Im also planning to be able to upload videos into the database and save it with a name as well, but not sure if that can be achieved.

if anyone knows how to make this app into a reality, ive already attached my aia file, you can edit it and post it back here with the changes. Thanks!

ImageDatabase.aia (2.3 KB)

Two ways you can try

image

image

But remember tinydb wont store images or videos instead they store only its paths

two ways possible. But if thy user misspelt any single letter it will be difficult for the app to find it.