dbTalk Databases Forums  

Repost - InetTransferLib Http download problem with zip files

comp.databases.ms-access comp.databases.ms-access


Discuss Repost - InetTransferLib Http download problem with zip files in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Owen Jenkins
 
Posts: n/a

Default Repost - InetTransferLib Http download problem with zip files - 11-29-2004 , 07:14 PM






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


Reply With Quote
  #2  
Old   
Terry Kreft
 
Posts: n/a

Default Re: Repost - InetTransferLib Http download problem with zip files - 12-01-2004 , 03:55 AM






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" <oj (AT) healthbase (DOT) com.au> wrote

Quote:
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




Reply With Quote
  #3  
Old   
Owen Jenkins
 
Posts: n/a

Default Re: Repost - InetTransferLib Http download problem with zip files - 12-16-2004 , 05:33 PM



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



Reply With Quote
  #4  
Old   
Terry Kreft
 
Posts: n/a

Default Re: Repost - InetTransferLib Http download problem with zip files - 12-17-2004 , 11:10 AM



You could try using the e-mail feedback at th site and see if Dev picks up
on it.

--
Terry Kreft
MVP Microsoft Access


"Owen Jenkins" <oj (AT) healthbase (DOT) com.au> wrote

Quote:
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





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.