![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Reposting this message from last week since I have not had a reply so far. Hopefully someone will have an idea? --- I've been using Dev's fantastic InetTransferLib to upload and download files via ftp. Now I'm using the http procedures to have my application download zip files from my website. Although the download process works OK, it adds a few bytes to the file during the download, so a 46k file becomes 52k. I can still open the file using Winzip, but cannot open it using my active X extraction system (ActiveXZip from www.hdse.com). I get an error 'Bad file format'. This is effectively stopping me using the ActiveX unzipping process which I need to build into my application to allow clients to download and install files from my website. I've tried the same process using ftp and the same thing happens. If I download using a browser, the file is transferred with no extra bytes and unzips perfectly using Winzip or ActiveXZip. Anyone know what could be happening during the download to modify the zip file? And how to fix it of course. Owen Jenkins |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks for the tip Terry. This was exactly the answer. It solved the download and the unzipping problem. It was obvious really (after you pointed it out!). I notice that the same 'error' is in the ftp module. Do you think it's significant enough to change the InetTransferLib module? I hope this message gets linked to the right thread. The original dropped off my list in my newsgroup reader and I haven't been able to log on via Google to send a reply. I've copied the original 2 posts below. Thanks again! Owen Jenkins Looking at the code in the procedure WriteHTTPDataToFile in the HTTP class the following line looks wrong to me Call apiWriteFile(hFile, abytData(0), MAX_CHUNK, _ lngBytesWritten, 0&) I think it should be Call apiWriteFile(hFile, abytData(0), lngBytesRead, _ lngBytesWritten, 0&) -- Terry Kreft MVP Microsoft Access Owen Jenkins Nov 29, 5:14 pm show options Newsgroups: comp.databases.ms-access From: Owen Jenkins <o... (AT) healthbase (DOT) com.au> - Find messages by this author Date: Tue, 30 Nov 2004 12:14:01 +1100 Local: Mon, Nov 29 2004 5:14 pm Subject: Repost - InetTransferLib Http download problem with zip files Reply | Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse Reposting this message from last week since I have not had a reply so far. Hopefully someone will have an idea? --- I've been using Dev's fantastic InetTransferLib to upload and download files via ftp. Now I'm using the http procedures to have my application download zip files from my website. Although the download process works OK, it adds a few bytes to the file during the download, so a 46k file becomes 52k. I can still open the file using Winzip, but cannot open it using my active X extraction system (ActiveXZip from www.hdse.com). I get an error 'Bad file format'. This is effectively stopping me using the ActiveX unzipping process which I need to build into my application to allow clients to download and install files from my website. I've tried the same process using ftp and the same thing happens. If I download using a browser, the file is transferred with no extra bytes and unzips perfectly using Winzip or ActiveXZip. Anyone know what could be happening during the download to modify the zip file? And how to fix it of course. Owen Jenkins |
![]() |
| Thread Tools | |
| Display Modes | |
| |