BlobをBase64にencode
code:ts
export function blobToBase64(blob: Blob): Promise<Base64Url> {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onloadend = () => resolve(reader.result as Base64Url);
reader.onerror = reject;
reader.readAsDataURL(blob);
});
}