spring-projects / spring-projects/spring-data-mongodb

[GridFs] - Append binary data to an existing file [DATAMONGO-1861]

Open
#2,762 2 comments 0 reactions 1 assignee View on GitHub

@mp911de is already working on this.

Since Dec 30, 2020.

in: core type: enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.