# Firebase RT database

**URL:** https://community.thunkable.com/t/firebase-rt-database/1042032
**Category:** Questions about Thunkable X
**Created:** [January 1, 2021, 1:33pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032 "2021-01-01T13:33:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![lukas\_b\_98knm](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lukas\_b\_98knm](https://community.thunkable.com/u/lukas_b_98knm)
#### Post date: [January 1, 2021, 1:33pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/1 "2021-01-01T13:33:39Z")

</div>

Hi,

I am new here, so sorry for the basic question but I could not find a solution yet. I just created a variable and want to store that in Firestore. I have connected my project with Google Firestore. I watched some tutorials and saw how people dragged the RT Firebase component onto the screen, but unfortunately, I cannot find that component. Where can I find that?

Many thanks

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 1, 2021, 1:42pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/2 "2021-01-01T13:42:40Z")

</div>

Welcome to the community

The RTDB component is not any more available. Now you just need to create a cloud variable. Whatever you assign to the variable is stored in the Firebase database.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/68259feed8e26209b87ce5506362173fe8257775.png)

---

<div class="post-metadata">

### Author: ![lukas\_b\_98knm](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lukas\_b\_98knm](https://community.thunkable.com/u/lukas_b_98knm)
#### Post date: [January 1, 2021, 1:47pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/3 "2021-01-01T13:47:23Z")

</div>

Thanks for letting me know. However, I am not sure how to store a variable in the database. I have created a variable and initialised as cloud, but I cannot select 'in RT Databse anymore and define its key, value. How does that work? You can find a picture attached.

 ![Screenshot 2021-01-01 at 14.40.53](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e812030aa026b811cb48c9cf166efb748fc0a5b.jpeg)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 1, 2021, 1:54pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/4 "2021-01-01T13:54:43Z")

</div>

So, assuming you have a key (node) in your database with the name `PASSWORDS` and it has sub-keys for each user such as John or muneer then you will create a cloud variable using the dynamic block  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/d/8d270ca5754dc723bc79552b71932151e3d64aa1.png)

Hope this clarifies the issue

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 1, 2021, 2:10pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/5 "2021-01-01T14:10:33Z")

</div>

This topic explains it all

> [@Replace GET or SAVE Blocks with cloud variables](http://community.thunkable.com/t/thunkable-hack-deep-firebase-json-data-manipulation-without-using-get-or-save-blocks/975738):
>
> I just discovered a VERY simple and fast way to get and set Firebase data without using the GET or SAVE blocks (which has all sorts of asynchronous issues). The 2 any button click blocks below return the same data. Just put the GET block KEY variable into the CLOUD variable name and PRESTO. You have a synchronous call to firebase! Similarly, you can set data anywhere in the JSON Hierarchy using cloud variables. Both of the examples below update Firebase, but the CLOUD based solution…

---

<div class="post-metadata">

### Author: ![lukas\_b\_98knm](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lukas\_b\_98knm](https://community.thunkable.com/u/lukas_b_98knm)
#### Post date: [January 1, 2021, 2:33pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/6 "2021-01-01T14:33:38Z")

</div>

Thanks a lot. And how can I retrieve data then from Firebase? I created an image component and want to get that image file from Firebase to display it in the image component.  
How would that work?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 1, 2021, 4:36pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/7 "2021-01-01T16:36:25Z")

</div>

Reading data is basically reading the value of the cloud variable.

Images take a different turn for Firebase. Save the image in a location or an image repository such as imageDB/cloudinary and save the URL of the image in Firebase database.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:31pm UTC](https://community.thunkable.com/t/firebase-rt-database/1042032/8 "2024-11-08T13:31:06Z")

</div>


