MCPcopy Create free account
hub / github.com/dailydotdev/apps / blobToBase64

Function blobToBase64

packages/shared/src/lib/blob.ts:1–9  ·  view source on GitHub ↗
(blob: Blob)

Source from the content-addressed store, hash-verified

1export const blobToBase64 = (blob: Blob): Promise<string> =>
2 new Promise((resolve) => {
3 const reader = new FileReader();
4 reader.onloadend = () => {
5 resolve(reader.result as string);
6 };
7
8 reader.readAsDataURL(blob);
9 });
10
11interface DownloadBlobProps {
12 filename: string;

Callers 1

onFileChangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected