Skip to content

New-ZipEntry Fails if File Being Added is > 2 GB #19

@franklesniak

Description

@franklesniak

As the title says, New-ZipEntry fails with an error "Stream was too long." when adding a file larger than 2 GB to an existing archive.

Example command:

New-ZipEntry -Destination '.\Folder\ZipFile.zip' -EntryPath 'VeryLargeFile.csv' -SourcePath (Join-Path $env:temp 'VeryLargeFile.csv') -CompressionLevel ([System.IO.Compression.CompressionLevel]::SmallestSize)

Issue encountered on PowerShell version 7.3.8 on Windows 11.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions