I need to save that profile picture returned from the google OAuth as base 64.
function Google_signIn(googleUser) {
const profile = googleUser.getBasicProfile();
console.log('ID: ' + profile.getId());
console.log('Name: ' + profile.getName());
console.log('Image URL: ' + profile.getImageUrl());
console.log('Email: ' + profile.getEmail());
console.log('JSON: ' + profile._json.image.url());
}
from this function, I can get the image URL, but I want to save the image in Base64.
This is a example URL.