Yuvaleros/material-ui-dropzone

How to get base64 of an image

EdiHadzic opened this issue · 1 comments

Feature Request

Is it possibile to return base64 of images posted. If so how can it be done ? i know preview uses it to show the pictures but how can we get it passed to state

The callback has a File object, so this is more a generic js question. I found out how to do this here: https://stackoverflow.com/questions/36280818/how-to-convert-file-to-base64-in-javascript