I'm using Polaris to develop an app for Shopify and need to upload an image using DropZone component, but I can't find how to get base64 file. Based on the document, in onDrop event,
and also I can convert it to blob with this code:
window.URL.createObjectURL(files[0])
then I want to convert the file to base64, How can I do this?