Support partial file retrieval in gridfs API

XMLWordPrintableJSON

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

      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
              Reporter:
              Daniel Romberg
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: