rembrembdocs

Skip to main content

Bun home pagelight logodark logo

[Runtime

](../../../index.md)[Package Manager

](../../../pm/cli/install/index.md)[Bundler

](../../../bundler/index.md)[Test Runner

](../../../test/index.md)[Guides

](../../index.md)[Reference

](https://bun.com/reference)[Blog

](https://bun.com/blog)[Feedback

](../../../feedback/index.md)

To convert a Node.js Readable stream to a Blob in Bun, you can create a new Response object with the stream as the body, then use response.blob() to read the stream into a Blob.

import { Readable } from "stream";
const stream = Readable.from(["Hello, ", "world!"]);
const blob = await new Response(stream).blob();

Was this page helpful?

Suggest editsRaise issue

[

Convert a Node.js Readable to JSON

Previous

](../node-readable-to-json/index.md)[

Convert a Node.js Readable to an Uint8Array

Next

](../node-readable-to-uint8array/index.md)