473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Repost - InetTransferLib Http download problem with zip files

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

Nov 13 '05 #1
1 2222
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@healthbase.com.au> wrote in message
news:41***************@healthbase.com.au...
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

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter | last post by:
Can someone help me with mvps.org's InetTransferLib demo? I successfully brought in InetTransfer sample .mdb and the modules. I can bring up frmTestCases form and when click on any of the...
2
by: Tony | last post by:
Access collective, I am running WinNT4.0, Acc2000 SR1 and IE 6.0. I converted (from Acc97) and imported Dev Ashish's InetTransferLib add-in modules into my Acc2000 database. Using the sample FTP...
0
by: Owen Jenkins | last post by:
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...
0
by: Owen Jenkins | last post by:
My Access application downloads file from my website using the InetTransferLib http functions. One of my clients working from a hospital network gets an error message 'proxy authentication...
0
by: THDWWSIJQUOK | last post by:
Hi, I have an A97 database, which I have created for FTP purposes using the InetTransferLib.mda file by Dev Ashish and Terry Creft The application has worked great for me as long as I dialed-up...
3
by: Adam | last post by:
I've posted about this previously, but failed to receive a satisfactory response, so have included a code sample: I am trying to receive messages from an HTML viewer control in compact.net (c#),...
14
by: Steve McLellan | last post by:
Hi, Sorry to repost, but this is becoming aggravating, and causing me a lot of wasted time. I've got a reasonably large mixed C++ project, and after a number of builds (but not a constant...
0
by: Owen Jenkins | last post by:
I've been successfully using the InetTransferLib to upload and download files via ftp for a long time. I only use it intermittently, and recently this stopped working on one of my computers (P4,...
2
by: Owen Jenkins | last post by:
Hi again. No responses to the first post 4 days ago, so just trying my luck again. Anyone have any hints where I might get an answer to this? It is an Access problem, but if you can point me to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.