Hi all,
I am running Xbase 2.0 (but it is the same on 1.92) and I am creating Zip-ffiles like:
oZip := XbZLibZip():New( "V2025_100.zip" )
if oZip:IsOpen( .t. )
oZip:AddFile( "V2025_100.txt" )
endif
oZip:Close()
The created ZIP-file can be opened with Explorer and the content look fine.
However, when validating the ZIP with:
https://www.luxa.org/archive
I get error like:
Testing archive: /archive/V2025_1000.zip
--
Path = /archive/V2025_1000.zip
Type = zip
Physical Size = 330
0% 100% T V2025_1000.txt
Sub items Errors: 1
Archives with Errors: 1
Sub items Errors: 1
Has anyone any idea what those Sub items Errors are ?
And how to get rid off them?
Is there any alternative to create ZIP-files?
I tried Xb2.NET function xbZCompressFile( "V2025_100.txt", "V2025_100.zip")
but that gives me the same problem. Maybe due to the fact that Xb2.NET internally uses
the zlib1.dll as well.
Regards,
Stephan Borst
XbZLibZip and Sub-item Errors
Moderator: Moderatoren
-
- Rookie
- Beiträge: 14
- Registriert: Mi, 15. Jun 2016 10:33
- Tom
- Der Entwickler von "Deep Thought"
- Beiträge: 9851
- Registriert: Do, 22. Sep 2005 23:11
- Wohnort: Berlin
- Hat sich bedankt: 136 Mal
- Danksagung erhalten: 470 Mal
- Kontaktdaten:
Re: XbZLibZip and Sub-item Errors
Ich nutze u.a. dafür Chilkat. Sensationell kompakt, irre schnell und elegant einzubinden. www.chilkatsoft.com
Herzlich,
Tom
Tom
-
- Rookie
- Beiträge: 14
- Registriert: Mi, 15. Jun 2016 10:33
Re: XbZLibZip and Sub-item Errors
Thanks Tom,
I had a quick look on Chilkat.
I suppose you are using ActiveX to implement this?
I am having a desktop-app which I distribute to my customers. I would rather
not use ActiveX since: "ActiveX DLLs need to be registered on any computer where they are used. ".
That will make my live very complicated (I think).
Anyone other ideas?
Regards, Stephan
I had a quick look on Chilkat.
I suppose you are using ActiveX to implement this?
I am having a desktop-app which I distribute to my customers. I would rather
not use ActiveX since: "ActiveX DLLs need to be registered on any computer where they are used. ".
That will make my live very complicated (I think).
Anyone other ideas?
Regards, Stephan
- Tom
- Der Entwickler von "Deep Thought"
- Beiträge: 9851
- Registriert: Do, 22. Sep 2005 23:11
- Wohnort: Berlin
- Hat sich bedankt: 136 Mal
- Danksagung erhalten: 470 Mal
- Kontaktdaten:
Re: XbZLibZip and Sub-item Errors
Hi, Stephan.
Yes, we do use Chilkat as an ActiveX component. We simply added the component to the manifest file, so it is registered automatically. This works very smooth. Chilkat is a genius tool and has lots of fantastic features. The samples can be easily adapted from FoxPro to Xbase++.
Yes, we do use Chilkat as an ActiveX component. We simply added the component to the manifest file, so it is registered automatically. This works very smooth. Chilkat is a genius tool and has lots of fantastic features. The samples can be easily adapted from FoxPro to Xbase++.
Herzlich,
Tom
Tom
-
- Rekursionen-Architekt
- Beiträge: 361
- Registriert: Mi, 09. Jan 2019 16:02
- Wohnort: Neresheim
- Hat sich bedankt: 2 Mal
- Danksagung erhalten: 17 Mal
- Kontaktdaten:
Re: XbZLibZip and Sub-item Errors
i use
oZip:AddDir(...)
Code: Alles auswählen
Bsp.:
cFileSpec := *.*
cZipPath := "c:\DirToZip\"
lSubDir := .T.
oZip:AddDir( cFileSpec , cZipPath , NIL , lSubDir , NIL , .F. )
Gruß
Roland
Roland