Encode image/signature blob to base64


I've added a signature field to my app an now I need to post this image to a rest api.
I've searched the forum and looked at the docs, but it is unclear to me how to convert the signature.value blob to base64.

I have to use some function utils.GetDatabyObjectURL, but I can't find any info about this function.


How to do this?

Let me know if this doc doesn't help: utils.getDataByObjectURL

@bca, thanks for adding that info.

I tried it using a transformer, is that the way to do it?

It's not working and it's showing an error in linting and console:

Transformers don't support async Javascript, you'll need to reference utils in a "JavaScript query".

Thanks, a JS Query worked.

1 Like