Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Firebase Storage in server

I learned from past thread that Firebase Database for plain JVM can be accessed from the new server SDK. So now I could use Firebase Database SDK for my JavaFX project, but how do I use the Storage SDK?

Sadly, Firebase Storage doc doesn't mention anything about setting up storage in server. StorageReference is also not available from com.google.firebase:firebase-server-sdk:[3.0.0,) or com.google.firebase:firebase-server-sdk:3.0.1.

like image 656
Hendra Anggrian Avatar asked Jun 05 '16 21:06

Hendra Anggrian


People also ask

Can Firebase be used as a server?

The Firebase CLI makes it easy to set up a new Hosting project, run a local development server, and deploy content. Add your static assets to a local project directory, then run firebase init to connect the directory to a Firebase project.

Is Firebase good for Storage?

Cloud Storage for Firebase is a powerful, simple, and cost-effective object storage service built for Google scale. The Firebase SDKs for Cloud Storage add Google security to file uploads and downloads for your Firebase apps, regardless of network quality.

When should you not use Firebase?

Firebase is not made for processing complex queries as it relies on a flat data hierarchy. Complicated queries like reversing the order of certain items cannot be executed using Firebase. On top of that, even when you go offline, your app might begin to underperform due to the concurrency.


1 Answers

Firebase Storage does not have a server SDK, but because it's backed by Google Cloud Storage, you can use the GCS server SDKs. Here are the GCS docs for accessing it from Java.

like image 126
katfang Avatar answered Oct 05 '22 07:10

katfang