material-ui-dropzone icon indicating copy to clipboard operation
material-ui-dropzone copied to clipboard

How to get base64 of an image

Open EdiHadzic opened this issue 4 years ago • 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

EdiHadzic avatar Feb 01 '21 20:02 EdiHadzic

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

justin-hackin avatar Apr 02 '21 00:04 justin-hackin