[CXX-1883] Support partial file retrieval in gridfs API Created: 28/Nov/19  Updated: 18/Jan/23  Resolved: 17/Jan/23

Status: Closed
Project: C++ Driver
Component/s: API
Affects Version/s: 3.4.0
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Daniel Romberg Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: bgtrack, post-5.0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CXX-2424 Add GridFS partial download Closed
Related

 Description   

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.



 Comments   
Comment by Daniel Romberg [ 03/Dec/19 ]

I see, thanks for removing the link. I didn't find any "relates to" option, but it is probably not very useful and "depends on" was indeed wrong.

Comment by Kevin Albertson [ 02/Dec/19 ]

Note, the C++ driver does not use libmongoc's gridfs implementation.

Generated at Wed Feb 07 22:04:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.