HBZIP

HBZIP

Postby Jeff Barnes » 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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: HBZIP

Postby hag » Sat Sep 18, 2010 4: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
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: HBZIP

Postby James Bott » Sun Sep 19, 2010 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: HBZIP

Postby Jeff Barnes » Mon Sep 20, 2010 8: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: HBZIP

Postby Jeff Barnes » Mon Sep 20, 2010 8: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: HBZIP

Postby James Bott » Mon Sep 20, 2010 8: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests