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.