Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

vigilant-archive/firebase-storage-dotnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FirebaseStorage.net

AppVeyor Build status

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

Installation

// Install release version Install-Package FirebaseStorage.net -pre

Supported frameworks

.NET Standard 1.1 - see https://github.com/dotnet/standard/blob/master/docs/versions.md for compatibility matrix

Usage

// 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;

About

C# library for Firebase Storage

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C# 100.0%