To get the existing profile picture source data, use the following API:
Code Block | ||
---|---|---|
| ||
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:
...