ImageEn, unit iemio

TImageEnMIO.LoadFromStreamZIP

TImageEnMIO.LoadFromStreamZIP

Declaration

function LoadFromStreamZIP(Stream: TStream; const Password: string = ''): Boolean;

Description

Loads the content of an archive stream into the attached TImageEnMView or TIEMultiBitmap using a plug-in.
The following archive formats are supported: Zip, ZipX, EPub, 7z, BZip2, Cab, Rar, Tar, ISO, CHM and LZH.
If the file is encrypted you can specify the password (otherwise a password prompt can be displayed if you enable AutoPromptForPassword. You can also use the OnPassword event).
The result will be False if an error is encountered, e.g. the file in the stream is not a supported format or the 7z plug-in is not found (Aborting will be True).


Note:
Archive extraction requires the 7z plug-in
LoadFromStreamZIP does not reset the position of the stream, so you may need to first call Stream.Position := 0;
Existing content is not cleared. Call Clear to remove existing content before loading
To abort while loading set Aborting to True
Read more about ImageEn ZIP Support