ZipArchive.Read(Stream, Encoding) Method
In This Article
Static method that creates a ZipArchive instance from the specified stream containing zipped data.
Namespace: DevExpress.Compression
Assembly: DevExpress.Docs.v24.2.dll
NuGet Package: DevExpress.Document.Processor
#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 |
---|---|
Zip |
A Zip |
#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