firebase / snippets-android

Android snippets for firebase.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

// Create a storage reference from our app val storageRef = storage.reference // Create a reference with an initial file path and name val pathReference = storageRef.child("images/stars.jpg") // Create a reference to a file from a Google Cloud Storage URI val gsReference = storage.getReferenceFromUrl("gs://bucket/images/stars.jpg") // Create a reference from an HTTPS URL // Note that in the URL, characters are URL escaped! val httpsReference = storage.getReferenceFromUrl( "https://firebasestorage.googleapis.com/b/bucket/o/images%20stars.jpg")StorageActivity.kt

cloud691 opened this issue · comments

// Create a storage reference from our app
val storageRef = storage.reference
// Create a reference with an initial file path and name
val pathReference = storageRef.child("images/stars.jpg")
// Create a reference to a file from a Google Cloud Storage URI
val gsReference = storage.getReferenceFromUrl("gs://bucket/images/stars.jpg")
// Create a reference from an HTTPS URL
// Note that in the URL, characters are URL escaped!
val httpsReference = storage.getReferenceFromUrl(
"https://firebasestorage.googleapis.com/b/bucket/o/images%20stars.jpg")

@cloud691 please file an issue in the format specified by the issue template if you're having trouble.