Skip to main content
Extremely Popular
Go to Latest
method GridFSBucket.prototype.downloadToStream
import { GridFSBucket } from "https://deno.land/x/mongo@v0.31.0/mod.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>