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.
- duplicates
-
CXX-2424 Add GridFS partial download
- Closed