Skip to main content
A newer version of this page is available. .

ZipArchive.Read(Stream, Encoding) Method

Static method that creates a ZipArchive instance from the specified stream containing zipped data.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v18.2.dll

Declaration

public static ZipArchive Read(
    Stream stream,
    Encoding encoding
)

Parameters

Name Type Description
stream Stream

A Stream object that is the stream containing archive data.

encoding Encoding

The Encoding object that specifies character encoding for the zip item names.

Returns

Type Description
ZipArchive

A ZipArchive instance that is the zip archive for modification or extraction.

Remarks

Use the Read method to open the archive for modification or extraction. To save the archive, use the corresponding ZipArchive.Save method override.

The Read method allows you to specify character encoding to correctly read item names.

See Also