I'm having trouble with the following code:
StorageReference imagemRef = storageReference
.child("imagens")
.child("perfil")
.child(Jogador.uid + ".jpeg");
UploadTask uploadTask = imagemRef.putFile(acct.getPhotoUrl());
Where acct
is GoogleSignInAccount
that returns the Uri of the google profile image.
Can anyone tell me what's wrong? Since putFile accepts Uri as a parameter.