Firebase Cloud Storage

I. Overview
Firebase Cloud Storage is a cloud storage service by Google, tightly integrated with the Firebase platform. In this blog, we will explore all the features and benefits that Firebase Cloud Storage brings to developers and businesses:
Easy Integration with Firebase
- Firebase Cloud Storage is part of the Firebase ecosystem, making the integration and management of data simple and efficient.
Safety and Security
- With Google's security infrastructure, Firebase Cloud Storage ensures absolute safety for your data. Access control features help you manage who can access and modify the data.
Flexible Scalability
- This service supports flexible scalability, ensuring that you can quickly adapt to sudden increases in data without compromising performance.
II. Pricing
The cost for Firebase Cloud Storage is calculated based on several different factors. Here are some key factors:
Storage:
- This cost depends on the amount of data you store in Firebase Cloud Storage. The pricing is calculated with discounts based on the amount of stored data.
Data Transfer:
- This cost is related to accessing and downloading data from Firebase Cloud Storage. It is calculated based on the amount of data transferred over the network.
Operations:
- Each time you perform operations such as reading, writing, deleting, or searching for data, you will incur operation costs. Different types of operations have different costs.
Composite Operations:
- Some types of operations, such as Copy or Rewrite, may involve multiple sub-operations and have a higher aggregate cost.
Backup Storage:
- If you use the backup storage feature, there is a cost associated with the amount of data stored in the backup.
Storage Class:
- Firebase Cloud Storage offers various types of storage with different pricing. For example: standard storage, high-speed storage, long-term storage, and backup storage have different prices.
Volume Discounts:
- If you store a large amount of data, Firebase may provide scale-based discounts.
Network Service Tiers:
- Costs may vary depending on the type of network service you choose (e.g., standard network, accelerated network).
III. Demo
Setup storage
Temporarily set allow read, write to true to allow reading and writing to Cloud Storage.
Add lib:
- flutter pub add firebase_storage
- flutter pub add image_picker: //Added to use to pick images and upload to storage
Pick image from gallery and push to storage
Check on the console we have: