in one of my react components I have the user able to upload the image, which I save by :
const tempImage = URL.createObjectURL(e.target.files[0])
and then I have a react editor library that edits the image and onSave() it returns the edited image in either imageBase64 or imageCanvas type, how can I set the new edited image so that it can be parsed correctly by javascript?