A storage reference is like a bridge for the cloud bucket and web services to request stored files. It acts as the data communication bridge between the client and Firebase web service. All the files stored in the cloud bucket are accessible through a reference. Remarkably, references are playing a prominent role in the process of file uploads and downloads. Storage references are instances of the StorageReference class from the Firebase storage support library. Developers can get the reference by calling the getReference() method of the FirebaseStorage instance.
The quintessential process of setting up Cloud Storage is first to create a FirebaseStorage class instance:
FirebaseStorage storage = FirebaseStorage.getInstance();
For setting up reference, all we need to do is use the instance of FirebaseStorage to call the getReference...