Commit 9a07abc2 authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #340

parents df57d682 cd1166b9
......@@ -87,9 +87,9 @@ To open a download stream and read from it:
$bucket = (new MongoDB\Client)->example->selectGridFSBucket();
$stream = $bucket->openDownloadStream($fileId);
$contents = file_get_contents($stream);
$contents = stream_get_contents($stream);
To download the file all at once and write it to an writable stream:
To download the file all at once and write it to a writable stream:
.. code-block:: php
......@@ -136,7 +136,7 @@ particular file:
$bucket = (new MongoDB\Client)->example->selectGridFSBucket();
$stream = $bucket->openDownloadStreamByName('my-file.txt', ['revision' => 0]);
$contents = file_get_contents($stream);
$contents = stream_get_contents($stream);
Deleting Files
--------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment