1You can do it by using FileReader as follows:
2
3convertBlobToBase64 = (blob) => new Promise((resolve, reject) => {
4 const reader = new FileReader;
5 reader.onerror = reject;
6 reader.onload = () => {
7 resolve(reader.result);
8 };
9 reader.readAsDataURL(blob);
10});
11
12const base64String = await convertBlobToBase64(blob);