Answers for "angular convert file to base64"

2

angular convert file to base64

handleUpload(event) {
    const file = event.target.files[0];
    const reader = new FileReader();
    reader.readAsDataURL(file);
    reader.onload = () => {
        console.log(reader.result);
    };
}
Posted by: Guest on July-26-2021

Code answers related to "angular convert file to base64"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language