spring-projects / spring-projects/spring-data-mongodb
[GridFs] - Append binary data to an existing file [DATAMONGO-1861]
@mp911de is already working on this.
Since Dec 30, 2020.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Gustavo de Geus opened DATAMONGO-1861 and commented
The idea to be able to append new binary data into existing files is interesting for use cases such as a resumable file upload where the application server receives the data in chunks.
It would be a great addition to the GridFsOperations a new method where you can send the new chunk of binary data and the file id and this new chunk of data will be appended to the fs.chucks and update the metadata on the fs.file.
The method signature could be something like:
- ObjectId append(InputStream content, String id);
There is a suggestion on how to implement it here: https://stackoverflow.com/questions/6280186/append-data-to-existing-gridfs-file
No further details from DATAMONGO-1861
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.