Easily upload files and other content to Firebase Storage. More info in a blog post
For Authenticating with Firebase checkout the Firebase Authentication library and related blog post
// Install release version
Install-Package FirebaseStorage.net -pre
- .NET 4.5+
- Windows 8.x
- UWP
- Windows Phone 8.1
- CoreCLR
// Get any Stream - it can be FileStream, MemoryStream or any other type of Stream
var stream = File.Open(@"C:\Users\you\file.png", FileMode.Open);
// Constructr FirebaseStorage, path to where you want to upload the file and Put it there
var task = new FirebaseStorage("your-bucket.appspot.com")
.Child("data")
.Child("random")
.Child("file.png")
.PutAsync(stream);
// Track progress of the upload
task.Progress.ProgressChanged += (s, e) => Console.WriteLine($"Progress: {e.Percentage} %");
// await the task to wait until upload completes and get the download url
var downloadUrl = await task;