|
-
Sep 7th, 2000, 10:53 PM
#1
Thread Starter
Junior Member
Hi,
I've been trying to download binary files, mainly gifs, using the Internet Transfer Control. I am using the code that is in the Help for VB 5.0:
Inet1.AccessType = icUseDefault
Dim b() As Byte
Dim strURL As String
' Presuming this is still a valid URL.
strURL = "ftp://ftp.microsoft.com/" & _
"developr/drg/Win32/Autorun.zip"
' Retrieve the file as a byte array.
b() = Inet1.OpenURL(strURL, icByteArray)
Open "C:\Temp\Autorun.zip" For Binary Access _
Write As #1
Put #1, , b()
Close #1
MsgBox "Done"
I have changed the code to download gif files from my web site and other web sites, but about 25% of the time the gif that is downloaded is corrupted, which means the gif looks sort of like it should, but the pixels are out of place.
Does anyone know how to fix this, or has anyone else had this problem?
Thank you for any help you can give.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|