[fpc-pascal] streaming file from zip into my app
Marc Santhoff
M.Santhoff at t-online.de
Sat Dec 1 23:05:28 CET 2007
Am Samstag, den 01.12.2007, 20:45 +0100 schrieb Marco van de Voort:
> > Am Freitag, den 30.11.2007, 23:09 +0200 schrieb Graeme Geldenhuys:
> > > On 30/11/2007, Marc Santhoff <M.Santhoff at t-online.de> wrote:
> > > >
> > > > But I still have questions about the code. Do I understand correctly
> > > > that Graeme contributed the de-/compression code but it still has to get
> > > > integrated and used by the component?
> > >
> > > We used the zlib (de)compression units from the tiOPF project. We
> > > simply removed the references to other tiOPF units - it was pretty
> > > stand-alone already so was easy. So yes, what's left is to integrate
> > > that code into the TZipFile component and do some tests. The
> > > (de)compression code has already been well unit tested in tiOPF, so we
> > > know that part works perfectly. As I stated earlier, I have also
> > > found a Object Pascal implementation of 7zip which I would like to add
> > > to both TZipFile and tiOPF - I still need to double check the
> > > licensing though.
> >
> > I'm remembering slowly, zlib is for handling gzip format, pkzip format
> > is still missing. And 7zip, does it have it's own format or is this used
> > for the common ".zip"-files?
> >
> > If I would want to complete the component, I'd try to use and maybe add
> > something to the unit I've already found in packages/extra/unzip. At
> > least the compression routines should do.
>
> Note if sb works on zlib, there still is a bugreport about OOo files and
> zlib in mantis (mismatch in CRC). I tried to fix it, but got stuck
I'm not, I only will start to write some code for extracting the
non-compressed "meta.xml" from OOo-files for accessing (r/o currently)
the document information. I need this for making a catalogue of files.
If I start something in the compression area I'll ask beforehand.
Thank for the warning,
Marc
More information about the fpc-pascal
mailing list