Skip to content

fix issue:(xapk) use stream copy to prevent OOM on large files (#2619)#2719

Merged
skylot merged 1 commit intoskylot:masterfrom
RedArms:fix-issue-2619
Dec 8, 2025
Merged

fix issue:(xapk) use stream copy to prevent OOM on large files (#2619)#2719
skylot merged 1 commit intoskylot:masterfrom
RedArms:fix-issue-2619

Conversation

@RedArms
Copy link
Copy Markdown
Contributor

@RedArms RedArms commented Dec 8, 2025

Replace entry.getBytes() with entry.getInputStream() and Files.copy(inputStream, path) to reduce memory usage and prevent OOM error like reported in #2619.

Copy link
Copy Markdown
Owner

@skylot skylot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@skylot skylot merged commit 6b61599 into skylot:master Dec 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants