Hello,
Attached is a simplified project using LibTar package, delivered with Lazarus.
It opens TAR archive, list archived files and tries to read archived file content to TStream for further processing. The last operation causes EStreamError exception with message "Writing to TStream is not supported".
Problem occur when using
PROCEDURE TTarArchive.ReadFile (Stream : TStream);
while using
PROCEDURE TTarArchive.ReadFile (Filename : STRING);
successfully extract archived files.
LibTar package seems to be imported from Delphi, original source code at
www.destructor.de I'm using Lazarus V 2.2.4, 64-bit, Windows 10.