Use Firebase Storage with Thunkable

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, the Java code for this is given. Is there any way to use Java with Thunkable?

1 Like

No there is not.
Follow this Thunkable tutorial.

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

2 Likes

very easy.

See this image from my Firebase Storage

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.

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)

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”.

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

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

Edit: Nevermind, it does.

1 Like

I’ll try Cloudinary

1 Like

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

1 Like

Cloudinary Works great, Thank You!!

1 Like