Skip to content

FileCreate/FileUpdate automatic chunking #1048

Open
@jbair06

Description

Problem

Issued copied from JS SDK: hiero-ledger/hiero-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

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions