FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HBZIP
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

HBZIP

Posted: Sat Sep 18, 2010 12:39 AM

Hi,

I use HBZip to compress a file and store it to the desktop.

The end user then logs into a website and uploads this compressed file to the web.

Another user will download the file and try to use my application to unzip it.

Here is the problem....

Somehow, the file is getting "altered" on the download side so HBZip cannot unzip it.
I have even tried to use WinRar to unzip the file with no luck.

I have had someone test the file directly on the server and everything is ok. It will open and the file is good.
When they try to download the file from any system other than the server (either via http of ftp) the problem occurs.

Does anyone have an idea what might be happening?????
I am completely lost on this one.

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM

Re: HBZIP

Posted: Sat Sep 18, 2010 04:01 PM

I use 7zip for the same process. It is free and 32bit. My clients data is in anumber of files. The 7z loads all files in a name (client enters) zip file stores anywhere then other users can down load install in their program and use the data. Never have a problem.

Thank you

Harvey
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: HBZIP

Posted: Sun Sep 19, 2010 06:30 PM

Jeff,

I have never had such a problem before.

The first thing I would check is do a FC (the old DOS File Compare) on both the file that was uploaded and the file that was downloaded to see if in fact they are different.

I would also try zipping and unzipping using the standard Windows functions. This will show if the problem is the zipping or unzipping that you are using.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Re: HBZIP

Posted: Mon Sep 20, 2010 08:09 PM

Hi Hag... Thanks for the reply but I am trying to keep everything contained within my app. I don't want the end user to have to do anything other than run my program.

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM

Re: HBZIP

Posted: Mon Sep 20, 2010 08:13 PM

Hi James,

I'm not so sure now that the problem is with HBZip.

I am able to download the suspect file on my end and it is fine.
The problem seems to be at the clients end.

They go through the same procedure to upload/download the file but on their end the downloaded file is no good.
If they download the file and test it on their server it is ok. If they download it from another computer (via the internet) off of their server it is no good.
I download it (via the internet) from their server and it is good.

I can't figure out why this is happening ... it is very strange.

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Re: HBZIP

Posted: Mon Sep 20, 2010 08:40 PM
Jeff,

If they download it from another computer (via the internet) off of their server it is no good.


I would still want to test this. Perhaps they can email you the file they have downloaded and you can test it against the original (using FC) and try unzipping it yourself.

If it is different, then perhaps the problem is with the software used to download the file. I assume you are using a FW FTP class or something? Does it have built-in error correction?

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion