Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To get the existing profile picture source data, use the following API:

Code Block
languagejs
canvas.getProfileImageSrc(function(src)
{
	console.log(src)
}); 
/*Here, getProfileImageSrc() is the function which takes a callback function as the argument.*/ 

The source data obtained will be in base64 format as it has an advantage over the URL format while accessing the application in offline mode. The following is a sample base64 format:

...