Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Document.Processor


public static ZipArchive Read(
    Stream stream,
    Encoding encoding


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.


Type Description

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


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