Hello,
Some application we're using depends on TComponent descendants to easily save/load the state of its internal objects, with the help of Write/ReadComponentResFile
function TSomeClass.SaveState: boolean;
begin
...
try
...
WriteComponentResFile(self.f_path, TComponent(self));
result := true;
except
result := false;
end;
....
end;
Now we would like to compress this data, but for some reason I've been unable to find a way to write similar function using the JCL bzip2 stream class, something about seek operation not being supported
As I am no TStream expert, I would like to know the easiest way for me to implement such a compression; working with TComponent read/write ?
Thanks