06-18-2013 01:02 AM - edited 06-18-2013 01:03 AM
Hi
My basic question is: What ZIP algorithm does the ZIP VI use when compressing files?
The case is that I have access to a zip file created from LabView, but I do not have access to LabView itself to decompress the file so I have to use a third party program to decompress the file.
Any info and pointers are appreciated.
Kind regards,
Mads
Solved! Go to Solution.
06-18-2013 01:25 AM
Could you please post your ZIP file?
06-18-2013 02:39 AM
Mads,
did you already try zip-tools? If so, which ones and what was the error you were seeing?
My experience shows, that e.g. WinRAR is working on these.
One side note:
If you don't have LV installed on the target machine where you want to unzip the package.... doesn't make much sense as you wont be able to open/execute these files.
It's somehow like copying pdf files to a target machine which does not have any pdf-reader installed.....
Norbert
06-18-2013 03:37 AM
@ManLD, I have found out from the header that the ZIP algorithm used is PKZIP. Unfortunately the data isn't pulled from the database where the zipfile is stored in binary format. Thats why I'm having trouble decompressing the file.
@Norbert_B, Sorry for being unclear about what I'm doing. The zipfile is generated within LabView and stored in a database. The contents of the zipfile is non-related to LabView itself, I just wan't to pull the zipfile from the database and decompress it with the appropriate algorithm without involving LabView.
Thank you both for your time.
Kind regards,
Mads
06-18-2013 03:56 AM
Mads,
so you are working with the ZIP functions of the filo IO palette, right?
The resulting zip is then moved into a database.
First question:
Can you extract the ZIP before it is copied into the database? If so, can you open it using 7Zip, WinZip or WinRAR? <I tested WinRAR and it works well.>
Second question:
If the ZIP works before moving into the database, but fails after it was pulled from the database: What datatype are you using for the ZIP file in your database? Are you sure that the binary file construct of the ZIP is not modified by the database?
Norbert
06-18-2013 04:06 AM
Norbert,
I don't use LabView, a colleague here at work does and he is on vacation, I just have access to the databse where the zipfile is stored. My hope was that I could be able to pull the zipfile from the database and decompress it without involving LabView.
Your ideas are good and I will look into them when my colleague get back from vacation.
Thank you for your time.
Mads
06-18-2013 05:17 AM
06-18-2013 09:41 AM
From a zip file made with LabVIEW, I have had no problems unzipping it using 7-zip and the Windows zip functions. Haven't tried WinZip yet, but I don't see it being an issue.