# Use Firebase Storage with Thunkable

**URL:** <https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [July 23, 2022, 4:56am UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359 "2022-07-23T04:56:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [July 23, 2022, 4:56am UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/1 "2022-07-23T04:56:09Z")

</div>

Hi,

I want to make an app in which:

- An admin can upload PDF files
- The viewer can view & download the PDF files

To do this, I’m thinking of using **Firebase Storage**. How do I integrate it with Thunkable?

On the [firebase website](https://firebase.google.com/docs/storage/android/upload-files), the Java code for this is given. Is there any way to use Java with Thunkable?

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [July 23, 2022, 6:25am UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/2 "2022-07-23T06:25:53Z")

</div>

No there is not.  
Follow this Thunkable tutorial.

> **[Realtime DB by Firebase](https://docs.thunkable.com/realtime-db)**

Then fill in your firebase options in Thunkable and either use real timeDB or cloud variables to upload/get data.

---

<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:** [July 23, 2022, 1:42pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/3 "2022-07-23T13:42:48Z")

</div>

very easy.

See this image from my Firebase Storage

```auto
https://firebasestorage.googleapis.com/v0/b/sample-structure-9d875.appspot.com/o/remote-control.png?alt=media&token=2a9c7d37-649d-47af-bd7b-2bf4f807fa1b

```

You can do the same.

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [July 25, 2022, 12:43pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/4 "2022-07-25T12:43:13Z")

</div>

So, you mean to provide a URL? How do I upload it, get the link and view it from my app as well?

(The same file has to be uploaded from the app and then viewable from the app itself, just to be clear)

---

<div class="post-metadata">

**Author:** ![ioannisroungeris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannisroungeris/32/109459_2.png) [@ioannisroungeris](https://community.thunkable.com/u/ioannisroungeris)\
**Post date:** [July 25, 2022, 1:11pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/5 "2022-07-25T13:11:46Z")

</div>

To upload it you need to use the web API component.

First, transform the image into base64(using a web viewer HTML code) and then post it as “body”.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [July 25, 2022, 1:15pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/6 "2022-07-25T13:15:30Z")

</div>

It might be better to use the built in functionality of Cloudinary, then show the PDF in a web viewer.

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [July 25, 2022, 1:16pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/7 "2022-07-25T13:16:12Z")

</div>

Does Cloudinary support PDFs? i thought it was only for images and videos

Edit: Nevermind, it does.

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [July 25, 2022, 1:16pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/8 "2022-07-25T13:16:58Z")

</div>

I’ll try Cloudinary

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [July 25, 2022, 1:17pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/9 "2022-07-25T13:17:33Z")

</div>

Give it a shot, if yoy cant figure it out. Let us know 🙂

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [July 25, 2022, 1:38pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/10 "2022-07-25T13:38:46Z")

</div>

Cloudinary Works great, Thank You!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [October 23, 2022, 1:39pm UTC](https://community.thunkable.com/t/use-firebase-storage-with-thunkable/1972359/11 "2022-10-23T13:39:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
