Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wininet.dll internetreadfile Zip file

Status
Not open for further replies.

FrankX

Programmer
Dec 28, 2001
14
US
Hi,
I've been banging my head against my desk for a day now. I want to download a .ZIP file from my companies intranet from within Access.

I used the InternetOpen, InternetConnect and HttpOpenRequest functions from wininet.dll. I set the HttpOpenRequest AcceptTypes parameter to "ZIP" & vbNullString.

When I try and loop through the InternetReadFile function to build the file in the buffer it always has 0 in the number of bytes read parameter.

Am I doing something wrong? is the InternetReadFile function only valid with text? should I change my buffer variable from string to something else? I need an asprin.

FrankX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top