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

Support GridFSDownloadStream CopyTo and CopyToAsync methods

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.2
    • 2.1.1
    • GridFS
    • None
    • C#, .NET 4.5, Visual Studio 2015, Windows 10

    Description

      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.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            Blundell89 Lee Blundell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: