Platform
Resources
Pricing
Sign in
Get started
Harris Lapiroff
Principal Web Developer at Freedom of the Press Foundation
Workspace
Fork
Public
By
Harris Lapiroff
Edited
Jun 13, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
blobToBase64
=
(
blob
)
=>
{
return
new
Promise
(
(
resolve
,
_
)
=>
{
const
reader
=
new
FileReader
(
)
;
reader
.
onloadend
=
(
)
=>
resolve
(
reader
.
result
)
;
reader
.
readAsDataURL
(
blob
)
;
}
)
;
}
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
blobToBase64
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML