Age old topic but not finding any solutions - Image to Base64 in DnD builder

Hi,

I’ll go straight to the point here, is there really no URL or image to base64 conversion method in the DnD builder? I am in need of this for an app I am building as the image will be parsed to Google Vision API which from my understanding needs the image to be in this format.

I am getting the image from either a camera photo using the camera component or the file picker to select an image from the device. I noticed that the file picker just stores a URL/URI of the location of the image.

Any suggestions (I have looked around for Web APIs that could do this preferable for free with no luck) please?

Thank you

Tim

Hi @tim.casson.smithpc, the conversion method is discussed in this topic:

Thanks @matt_conroy for this - not being that familiar with this code , how would I pass an image directly from a camera to it without having to prompt the user to do this?