Code for uploading and downloading using gridfs of mongocxx

Hello everyone, I have just started working on mongocxx driver and I need some help using the gridfs to upload files into and download files from the database. It will be great if someone can provide some sample codes for reference.

https://developer.aliyun.com/article/397577

http://mongocxx.org/api/current/classmongocxx_1_1gridfs_1_1bucket.html

1 Like

Thank you @Jack_Woehr this is helpful.

1 Like