Vote UpVote

Exception while using TStreamReader with TZipFile

The curse of Dennis D. Spreen – If you’re using the TStreamReader with a TZDecompressionStream – the stream output by TZipFile.Read(const FileName: string; out Stream: TStream; out LocalHeader: TZipHeader) – you’re likely to experience the exception: EZDecompressionError with the message 'Invalid ZStream operation!'. TZDecompressionStream allows only three seek methods: Read forward from beginning (Offset = 0) and (Origin = soBeginning) Read forward from current position (Offset >= 0) and (Origin = soCurrent) Read end (Offset = 0) and (Origin = soEnd) But TStreamReader adjusts the read buffer ...
Favorite? Off-Topic? Dennis @ 2014-05-13 13:03


Visits: 795
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Jeroen Pluimers
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)