Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileCreate/FileUpdate automatic chunking #1983

Open
jbair06 opened this issue Sep 3, 2024 · 0 comments
Open

FileCreate/FileUpdate automatic chunking #1983

jbair06 opened this issue Sep 3, 2024 · 0 comments
Labels
backlog enhancement New feature or request

Comments

@jbair06
Copy link
Member

jbair06 commented Sep 3, 2024

Problem

Issued copied from JS SDK: hashgraph/hedera-sdk-js#2500

When creating or updating a file using the FileCreate or FileUpdate, if the contents are too large for a single transaction, a FileAppend is required to be created in addition to the FileCreate/Update.

FileAppend, on the other hand, can handle a large content because it does chunking of that content internally. It would be good to have FileCreate and FileUpdate to have this same functionality.

Solution

Refactor FileCreate, FileUpdate, and FileAppend to all share a base class. This base class will have the shared components, including the chunking logic currently located in FileAppend.

Alternatives

No response

@jbair06 jbair06 added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants