Daniel Madsen
Mega Sage

Is the parameter "dataUrl" a url for an image, or is it the actual base64 encoded data of the image? Based on the names of the variables, it looks like you are trying to base64 decode a url, which is then added as an attachment. Try passing in the base64 encoded data instead.