Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1484

Support GridFSDownloadStream CopyTo and CopyToAsync methods

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

      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@mongodb.com Robert Stam
            Reporter:
            Blundell89 Lee Blundell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: