Please do not tag users. Actually you can not save the actual images to tinyDB but the path to images. Where do you store images to be purchased , in firebase storage or …? Once image is purchased you can download it to user’s phone and save path to tinydb