Cloud Storage for Firebase được tạo trên nền tảng nhanh và an toàn
Cơ sở hạ tầng Google Cloud dành cho những nhà phát triển ứng dụng cần lưu trữ và phân phát
nội dung do người dùng tạo, chẳng hạn như ảnh hoặc video.
Cloud Storage for Firebase là một đối tượng mạnh mẽ, đơn giản và tiết kiệm chi phí
dịch vụ lưu trữ dành cho các quy mô lớn của Google. Các SDK Firebase dành cho Cloud Storage sẽ thêm Google
tính bảo mật khi tải lên và tải xuống tệp cho ứng dụng Firebase của bạn, bất kể
chất lượng mạng.
Bạn có thể sử dụng các SDK ứng dụng của chúng tôi để lưu trữ hình ảnh, âm thanh, video hoặc các nội dung khác
nội dung do người dùng tạo. Trên máy chủ, bạn có thể sử dụng Firebase Admin SDK để
quản lý nhóm và tạo URL tải xuống cũng như sử dụng
Google Cloud Storage API
để truy cập vào tệp của bạn.
Bạn đã sẵn sàng bắt đầu? Chọn nền tảng bạn sử dụng:
Firebase SDK cho Cloud Storage thực hiện tải lên và tải xuống bất kể
chất lượng mạng. Tính năng tải lên và tải xuống rất mạnh mẽ, tức là sẽ bắt đầu lại ở nơi
dừng, giúp người dùng tiết kiệm thời gian và băng thông.
Khả năng bảo mật mạnh
Firebase SDK dành cho Cloud Storage tích hợp với Firebase Authentication để cung cấp
xác thực đơn giản và trực quan dành cho nhà phát triển. Bạn có thể sử dụng
mô hình bảo mật khai báo cho phép truy cập dựa trên tên tệp, kích thước, nội dung
và siêu dữ liệu khác.
Khả năng mở rộng cao
Cloud Storage được xây dựng cho tỷ lệ exabyte khi ứng dụng của bạn lan truyền mạnh mẽ.
Dễ dàng phát triển từ nguyên mẫu đến sản xuất trong cùng một cơ sở hạ tầng
hỗ trợ Spotify và Google Photos.
Tính năng này hoạt động như thế nào?
Nhà phát triển sử dụng SDK Firebase dành cho Cloud Storage để tải tệp lên và tải xuống
trực tiếp từ khách hàng. Nếu kết nối mạng kém, máy khách có thể
thử lại thao tác từ vị trí đã dừng lại trước đó, giúp người dùng tiết kiệm thời gian và
băng thông.
Cloud Storage for Firebase lưu trữ tệp của bạn trong một
Bộ chứa Google Cloud Storage,
giúp bạn có thể truy cập các báo cáo này thông qua cả Firebase và Google Cloud. Điều này cho phép bạn
sự linh hoạt để tải lên và tải xuống tệp từ các ứng dụng di động thông qua
Firebase SDK dành cho Cloud Storage. Ngoài ra, bạn có thể thực hiện xử lý phía máy chủ như
như lọc hình ảnh hoặc chuyển mã video bằng cách sử dụng
API Google Cloud Storage.
Cloud Storage tự động điều chỉnh tỷ lệ, nghĩa là bạn không cần
di chuyển sang bất kỳ nhà cung cấp nào khác. Tìm hiểu thêm về tất cả lợi ích của
tích hợp với Google Cloud.
Firebase SDK dành cho Cloud Storage tích hợp liền mạch với
Firebase Authentication để xác định người dùng, đồng thời chúng tôi cung cấp
ngôn ngữ bảo mật khai báo cho phép bạn thiết lập
kiểm soát quyền truy cập vào từng tệp hoặc nhóm tệp để bạn có thể tạo tệp
công khai hoặc riêng tư
như bạn muốn.
Lộ trình triển khai
Tích hợp các SDK Firebase cho Cloud Storage.
Nhanh chóng đưa các ứng dụng vào thông qua Gradle, CocoaPods hoặc một tập lệnh bao gồm.
Tạo tệp đối chiếu
Tham chiếu đường dẫn đến một tệp, chẳng hạn như "images/Mountains.png", để tải lên,
tải xuống hoặc xoá dữ liệu đó.
Tải lên hoặc tải xuống
Tải lên hoặc tải xuống các loại gốc trong bộ nhớ hoặc trên ổ đĩa.
Firebase Remote Config lưu trữ các mã do nhà phát triển chỉ định
các cặp khoá-giá trị để thay đổi hành vi và giao diện của ứng dụng mà không cần
yêu cầu người dùng tải bản cập nhật xuống.
Firebase Hosting lưu trữ HTML, CSS và
JavaScript cho trang web của bạn cũng như các tài sản khác do nhà phát triển cung cấp như
đồ hoạ, phông chữ và biểu tượng.
Các bước tiếp theo
Tải tệp đầu tiên của bạn lên Cloud Storage bằng tính năng bắt đầu nhanh của chúng tôi cho
iOS,
Android,
Web,
C++,
hoặc Unity.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-24 UTC."],[],[],null,["Cloud Storage for Firebase \nplat_ios plat_android plat_web plat_flutter plat_cpp plat_unity \nCloud Storage for Firebase is built on fast and secure\nGoogle Cloud infrastructure for app developers who need to store and serve\nuser-generated content, such as photos or videos. \nCloud 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.\n\n\u003cbr /\u003e\n\nYou can use our client SDKs to store images, audio, video, or other\nuser-generated content. On the server, you can use the Firebase Admin SDK to\nmanage buckets and create download URLs, and use\n[Google Cloud Storage APIs](//cloud.google.com/storage/docs/reference/libraries)\nto access your files.\n\n\u003cbr /\u003e\n\nReady to get started? Choose your platform:\n\n[iOS+](/docs/storage/ios/start)\n[Android](/docs/storage/android/start)\n[Web](/docs/storage/web/start)\n[Flutter](/docs/storage/flutter/start)\n\n[Unity](/docs/storage/unity/start)\n[C++](/docs/storage/cpp/start)\n\nKey capabilities\n\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Robust operations | Firebase SDKs for Cloud Storage perform uploads and downloads regardless of network quality. Uploads and downloads are robust, meaning they restart where they stopped, saving your users time and bandwidth. |\n| Strong security | Firebase SDKs for Cloud Storage integrate with Firebase Authentication to provide simple and intuitive authentication for developers. You can use our declarative security model to allow access based on filename, size, content type, and other metadata. |\n| High scalability | Cloud Storage is built for exabyte scale when your app goes viral. Effortlessly grow from prototype to production using the same infrastructure that powers Spotify and Google Photos. |\n\nHow does it work?\n\nDevelopers use the Firebase SDKs for Cloud Storage to upload and download files\ndirectly from clients. If the network connection is poor, the client is able to\nretry the operation right where it left off, saving your users time and\nbandwidth.\n\nCloud Storage for Firebase stores your files in a\n[Google Cloud Storage](//cloud.google.com/storage) bucket,\nmaking them accessible through both Firebase and Google Cloud. This allows you\nthe flexibility to upload and download files from mobile clients via the\nFirebase SDKs for Cloud Storage. In addition, you can do server-side processing such\nas image filtering or video transcoding using the\n[Google Cloud Storage APIs](//cloud.google.com/storage/docs/reference/libraries).\nCloud Storage scales automatically, meaning that there's no need to\nmigrate to any other provider. Learn more about all the benefits of our\n[integration with Google Cloud](/docs/storage/gcp-integration).\n\nThe Firebase SDKs for Cloud Storage integrate seamlessly with\n[Firebase Authentication](/docs/auth) to identify users, and we provide a\n[declarative security language](/docs/storage/security) that lets you set\naccess controls on individual files or groups of files, so you can make files as\npublic or private as you want.\n\nImplementation path\n\n|---|------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| | Integrate the Firebase SDKs for Cloud Storage. | Quickly include clients via Gradle, CocoaPods, or a script include. |\n| | Create a Reference | Reference the path to a file, such as \"images/mountains.png\", to upload, download, or delete it. |\n| | Upload or Download | Upload or download to native types in memory or on disk. |\n| | Secure your Files | Use [Firebase Security Rules for Cloud Storage](/docs/storage/security) to secure your files. |\n| | (Optional) Create and Share Download URLs | Use the [Firebase Admin SDK](/docs/storage/admin/start) to generate shareable URLs to let users download objects. |\n\nLooking to store other types of data?\n\n- [Cloud Firestore](/docs/firestore) is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud.\n- The [Firebase Realtime Database](/docs/database) stores JSON application data, like game state or chat messages, and synchronizes changes instantly across all connected devices. To learn more about the differences between database options, see [Choose a database: Cloud Firestore or Realtime Database](/docs/firestore/rtdb-vs-firestore).\n- [Firebase Remote Config](/docs/remote-config) stores developer-specified key-value pairs to change the behavior and appearance of your app without requiring users to download an update.\n- [Firebase Hosting](/docs/hosting) hosts the HTML, CSS, and JavaScript for your website as well as other developer-provided assets like graphics, fonts, and icons.\n\nNext steps\n\n- Upload your first file to Cloud Storage using our quickstarts for [iOS](https://github.com/firebase/quickstart-ios), [Android](https://github.com/firebase/quickstart-android), [Web](https://github.com/firebase/quickstart-js), [C++](https://github.com/firebase/quickstart-cpp), or [Unity](https://github.com/firebase/quickstart-unity).\n- Add Cloud Storage to your [Apple](/docs/storage/ios/start), [Android](/docs/storage/android/start), [Web](/docs/storage/web/start), [C++](/docs/storage/cpp/start) or [Unity](/docs/storage/unity/start) app.\n- Learn about how to secure your files using [Firebase Security Rules for Cloud Storage](/docs/storage/security).\n- Add powerful new features such as image recognition or speech to text by [integrating with Google Cloud](/docs/storage/gcp-integration)."]]