.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ZipArchive.UpdateStream(String, Stream) Method

Updates the content of the zip stream item.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v21.1.dll

Declaration

public ZipStreamItem UpdateStream(
    string name,
    Stream stream
)

Parameters

Name Type Description
name String

A string that is the name of the zip stream item to update.

stream Stream

A Stream object that is the new stream of data for the zip stream item.

Returns

Type Description
ZipStreamItem

A ZipStreamItem object that is the updated zip stream item.

Remarks

The UpdateStream method removes an item from the archive, creates a new zip stream item with the same name along with a new stream and adds it to the archive.

If an item is not found, it is created.

Use the ZipArchive.Read to load the archive to be updated. To save the updated archive, use the ZipArchive.Save method.

See Also