Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method GridFSBucket.prototype.downloadToStream
import { GridFSBucket } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";

Downloads the contents of the stored file specified by @id and writes the contents to the @destination Stream.

Parameters

id: FileId
destination: WritableStream<Uint8Array>