Platform
Resources
Pricing
Sign in
Get started
Protocol Labs
Workspace
Fork
Published
By
Irakli Gozalishvili
Edited
Sep 8, 2021
2
Insert cell
md
`# Example for [#349](https://github.com/ipfs-shipyard/nft.storage/issues/349)`
Insert cell
Insert cell
Insert cell
Insert cell
client
=
new
NFTStorage
(
{
token
:
Secret
(
"NFT_STORAGE_TOKEN"
)
}
)
Insert cell
image
=
FileAttachment
(
"gozala.jpg"
)
.
blob
(
)
Insert cell
pic
=
FileAttachment
(
"GozalaPinq.jpg"
)
.
blob
(
)
Insert cell
token
=
client
.
store
(
{
name
:
"gozala"
,
description
:
"gozala portrait"
,
image
:
new
File
(
[
image
]
,
'gozala.jpg'
,
{
type
:
image
.
type
}
)
,
properties
:
{
message
:
'hello world'
,
another
:
{
pic
}
}
}
)
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
NFTStorage
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
client
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
pic
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
token
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML