Answer to the same question:
If it has to be on device, you might be able to setup a Termux app as a php server, and do something similar: METRIC RAT AI2 - Termux from AppInventor App
Organise your images to always be in the same folder, then simply store the file paths
You can save binary files to cloudDB, you need to use a full path to the file and a separate tag just for the file. ( Be aware that you cannot rely on the MIT provided redis storage to always be there, and heavy users may be locked out)