You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Converts base 64 to File object * * @param base64String Image in base 64 string format * @param name filename */exportconstdataURLtoFile=(base64String: string,name: string,type: string): File=>{constparts=base64String.split(',');constbyteString=atob(parts[1]);constintArray=newUint8Array(byteString.length);// Set the bytes of the buffer to the correct valuesfor(leti=0;i<byteString.length;i++){intArray[i]=byteString.charCodeAt(i);}// IE does not support File() constructor, so we need to create blob.// But blob differs from file only because it does not have lastModified and name, which can be added manuallyconstfile=newBlob([intArray],{ type });file['name']=name;file['lastModified']=Date.now();returnfileasFile;};
why canvas.toBlob() is unfriend for edge browser ,kindly share a possible solution for edge browser
The text was updated successfully, but these errors were encountered: