Support GridFSDownloadStream CopyTo and CopyToAsync methods

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.2
    • Affects Version/s: 2.1.1
    • Component/s: GridFS
    • None
    • Environment:
      C#, .NET 4.5, Visual Studio 2015, Windows 10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Given a GridFSBucket implementation when calling the OpenDownloadStreamAsync method a GridFSDownloadStream is returned.

      The stream returned from the API does not allow us to copy it. When using the CopyToAsync method, a NotImplementedException is thrown, and a NotSupportedException is thrown when using the CopyTo and Read methods. ReadAsync seems to be the only method that works correctly.

      I have attached a .NET sample to show the scenario.

              Assignee:
              Robert Stam
              Reporter:
              Lee Blundell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: