Skip to content

Serving images #455

Answered by unnoq
stuartin asked this question in Q&A
Apr 27, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You need to convert the data into a Blob or File instance (in both compact/detailed mode), and the headers must be an object, as described here

For further optimization, you might also consider using lazy-file and r2File.body

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stuartin
Comment options

@unnoq
Comment options

Answer selected by stuartin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants