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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSInet downloading gif files

Status
Not open for further replies.

JonathonC

Technical User
Aug 18, 2001
43
GB
The following code overwrites a picture on the users machine with a file downloaded off the Interent by the INet control. But once the download is complete the gif picture cannot be viewed. I think it might have something to do with the 'Binary' part because when downloading plain text files or HTML files it works fine.

Dim b() As Byte
Open App.Path & "\support\" & "gifpicture.gif" For Binary Access Write As #1
b() = Inet1.OpenURL("Put #1, , b()
Close #1

Thanks,
Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
 
Ignore the previous post, I've just realised that I forgot the ", icByteArray" on the end of the downloading from URL.

Jonathon. Computer problems? Have you checked the loose nut in front of the keyboard yet?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top