June 2018
Beginner to intermediate
394 pages
9h 2m
English
The quintessential requirement for downloading a file from a storage bucket is to create a reference. In this chapter, we created a storage reference before uploading files. We can create a reference by combining child paths with the storage root, or we can create the reference from an existing URL pointing to the object in the storage bucket. The following example illustrates how to create a reference for downloading a file:
// Creating a storage reference StorageReference storageRef = storage.getReference();// Creating a reference with an initial file path and nameStorageReference pathReference = storageRef.child("pictures/Rafael.jpg");// Create a reference to a file from a Google Cloud Storage URIStorageReference ...
Read now
Unlock full access