hedera-sdk-java icon indicating copy to clipboard operation
hedera-sdk-java copied to clipboard

FileCreate/FileUpdate automatic chunking

Open jbair06 opened this issue 5 months ago • 0 comments

Problem

Issued copied from JS SDK: https://github.com/hashgraph/hedera-sdk-js/issues/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 avatar Sep 03 '24 21:09 jbair06