[CXX-2424] Add GridFS partial download Created: 28/Dec/21  Updated: 28/Oct/23  Resolved: 20/Feb/22

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

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CXX-1883 Support partial file retrieval in gri... Closed

 Description   

Support partial download for the bucket::download_to_stream. This is permitted in the GridFS specification under Partial File Retrieval:

In the case of download_to_stream, drivers are not required to support partial file retrieval. If they choose to do so, drivers can support this operation by adding ‘start’ and ‘end’ to their supported options for download_to_stream. These values represent non-negative byte offsets from the beginning of the file. When ‘start’ and ‘end’ are specified, drivers return the bytes of the file in [start, end). If ‘start’ and ‘end’ are equal no data is returned.



 Comments   
Comment by Githook User [ 20/Feb/22 ]

Author:

{'name': 'ogrech-antidot', 'email': '87519758+ogrech-antidot@users.noreply.github.com', 'username': 'ogrech-antidot'}

Message: CXX-2424 Add GridFS partial download (#804)

Co-authored-by: Kevin Albertson <kevin.albertson@mongodb.com>
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/a7be2f22f2cd4c8664e48abae4f78b6f1c9d6e99

Comment by Kevin Albertson [ 28/Dec/21 ]

Community PR: https://github.com/mongodb/mongo-cxx-driver/pull/804

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