We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df57d68 commit 1be388eCopy full SHA for 1be388e
docs/tutorial/gridfs.txt
@@ -87,7 +87,7 @@ To open a download stream and read from it:
87
$bucket = (new MongoDB\Client)->example->selectGridFSBucket();
88
89
$stream = $bucket->openDownloadStream($fileId);
90
- $contents = file_get_contents($stream);
+ $contents = stream_get_contents($stream);
91
92
To download the file all at once and write it to an writable stream:
93
@@ -136,7 +136,7 @@ particular file:
136
137
138
$stream = $bucket->openDownloadStreamByName('my-file.txt', ['revision' => 0]);
139
140
141
Deleting Files
142
--------------
0 commit comments