imgSrcToDataURL returns [object Object] not string
MarioVanDenEijnde opened this issue · 1 comments
MarioVanDenEijnde commented
Hello Support,
The code below returns an Object not a string. Can you advise?.
var myBlob = blobUtil.imgSrcToDataURL('http://my-personaltrainer.nl/images/image.png', 'image/jpeg');
console.log("myBlob = " + myBlob);
Kind regards,
Mario
nolanlawson commented
Hi, the Object you are seeing is a promise, so you need to use the promise style as specified in the API.