Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1883

Support partial file retrieval in gridfs API

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.0
    • Component/s: API
    • Labels:

      The C++ driver should support partial file retrieval from a GridFS bucket as specified in the GridFS specification.
      This could be implemented by introducing an optional parameter offset to the read method of the mongocxx::gridfs::downloader class:

      std::size_t read (std::uint8_t *buffer, std::size_t length, std::size_t offset = 0);

      The default value ensures backwards compatibility.

            Assignee:
            Unassigned Unassigned
            Reporter:
            abroxa@gmail.com Daniel Romberg
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: