title: Upload Base64 image with Firebase 3
body: <p>It is possible to upload base64 image to Firebase ?</p>
  
  <p>I have tried this code :</p>
  
  <pre><code>                    var storageRef = firebase.storage().ref();
                  console.log(storageRef);                                        
                  var file = "data:image/jpeg;base64,BASE64.....";
  
                  var uploadTask = storageRef.child('avatars/'+user.providerData[0].uid+'/photo-'+$scope.number+'.jpg').put(file);
                  uploadTask.on('state_changed', function(snapshot){
                  }, function(error) {
                    console.log('error');
                  }, function() {
                    console.log('success');
                    var downloadURL = uploadTask.snapshot.downloadURL;
                  });
  </code></pre>
  
  <p>But i have an error :</p>
  
  <pre><code>{code: "storage/invalid-argument", message: "Firebase Storage: Invalid argument in `put` at index 0: Expected Blob or File.", serverResponse: null, name: "FirebaseError"}
  </code></pre>