Thema: VCLZip XE2

Einzelnen Beitrag anzeigen

mquadrat

Registriert seit: 13. Feb 2004
1.113 Beiträge
 
Delphi XE2 Professional
 
#6

AW: VCLZip XE2

  Alt 2. Sep 2011, 10:29
Ja, da habt ihr wohl recht.

Ich habe aktuell noch nicht gefunden wie ich mit der nativ ZIP-Routinen eine im ZIP befindliche Datei in einen MemoryStream bekomme. Gibts da evtl. bespiele, die ich noch nicht kenne?
Delphi-Quellcode:
    
    /// <summary> Get a stream to read a file from disk </summary>
    /// <remarks>
    /// 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.
    /// </remarks>
    /// <param name="FileName">ZIP file FileName</param>
    /// <param name="Stream">Output Stream</param>
    /// <param name="LocalHeader">Local File header</param>
    procedure Read(FileName: string; out Stream: TStream; out LocalHeader: TZipHeader); overload;
    procedure Read(Index: Integer; out Stream: TStream; out LocalHeader: TZipHeader); overload;
In der Hilfe findet sich übrigens TZipFile bei mir gar nicht?!
  Mit Zitat antworten Zitat