You should consume a rest service and not Publish a rest service in mendix. There is Api documentation for Fire base in gogole.
You can have a look at this link : https://firebase.google.com/docs/reference/rest/database.
You should put a rest call in a microflow and use Suitable rest mehtod to retrieve the image. For Rest End point you canrefere to the link above.
Hope it helps!
I have tried to read the link you kindly provided me. I am currently trying to understand how firebase works as well as reading information from firebase in Mendix. I would like to try to retrieve other types of data (not images) first before proceeding to retrieving image. However, it is currently not that successful as of now.
I have this test database. What I did was I exported the JSON in fireabase. On Mendix side, I created a non-persistable entity with attributes “blah(string)” and “test(string)”. I copied from the JSON file and paste into the “JSON Structure” in Mendix, created an import mapping and map it automatically.
This is my microflow to retrieve data from firebase. However, this is not working and it does not show anything in my web. I had a similar configuration when retrieving data from an IOT platform called thingspeak which works but for some reason it dosent work for firebase.
When I looked at firebase Monitor Rules, it says that it has 21 total allow connection, 0 denies, 0 errors. When I looked at the usage, it says that it has 85.1KB of downloads. May I know whats the issue and how do I solve this please? I will really appreciate if you could guide me.