Another thing to verify is the "base64Data" that's is the most important part of the image, the other 2 property are just text, so make sure the "base64Data" is a valid Base64 string.
Hope this helps!
Let me know what happens and have a nice day!
The works but I have to upload the image twice to load (first time populates the retoolFileObject, the second time updates the image itself).
In other words, I'd like the image window to populate what was saved in the database but change the image if the user chooses to change the image and update the database with the new image.
Note: I tried using the global object in place of the two data input methods and that too didn't (object structure look exactly the same but wouldn't load).
I figured it out. I had the same issue with a two-source data input for a drop down for which I found a solution, so I circled back to try it on this multi-data input issue for an image component that I was having.
The solution is to make the data into objects like you suggested but how to do where the two input data sources are formatted the same.
I created a VARIABLE GUI window (called ImagesOnPC) and placed the fileButton1 value into it (need the [0] index value or it won't work).
{{fileButton1.value[0]}}
I created another VARIABLLE GUI window (called ImagesQuery) and placed the Query values into it. (again, need the [0] index value or it won't work).