Root > Reference > All Classes > TZipFile > Methods > TZipFile.Read

Method TZipFile.Read

Previous pageReturn to chapter overviewNext page   

Read a file from arcive to an array of Bytes

 

Get a stream to read a file from disk

 

Unit

EZip

 

Syntax

 

Code (Delphi)

public

procedure Read(

const FileName: string;

out Bytes: TBytes

); overload;

 

procedure Read(

const FileName: string;

out Stream: TStream;

out LocalHeader: TZipHeader

); overload;

 

Parameters

FileName

ZIP file FileName

 

Bytes

Output bytes

 

FileName

ZIP file FileName

 

Stream

Output Stream

 

LocalHeader

Local File header

 

Remarks

The overload that takes an Integer may be useful when a ZIP file has duplicate filenames.

 

The Stream returned by this function is a decomression stream wrapper around the interal Stream reading the zip file. You must Free this stream before using other TZipFile methods that change the contents of the ZipFile, such as Read or Add. The overload that takes an Integer may be useful when a ZIP file has duplicate filenames.

 

See also




Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_method_ezip_tzipfile_read.php