[thelist] Visual Basic / Cold Fusion - download image help

Nicole P nparrot at pair.com
Wed Jul 3 22:20:01 CDT 2002


Found on microsoft.com, not personally tested:
.................
Private Sub GetFile(s As String, d As String)
Debug.Print s, d
Dim x() As Byte
Inet1.URL = s
Inet1.UserName = Text2.Text
Inet1.Password = Text3.Text
x = Inet1.OpenURL(, icByteArray)
Open d For Binary Access Write As #1
Put #1, , x()
Close #1
End Sub

You may have noticed something interesting here. Nowhere did I mention any
code that was specific for the HTTP or FTP protocol. I used the Internet
Transfer control's ability to load information from either type of server
and left the ultimate decision on what protocol to use up to the
implementers.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexpvb/htm
l/programmingwithinternettransfercontrol.asp

----- Original Message -----
From: "Josh" <josh at eaccessit.com>
To: <thelist at lists.evolt.org>
Sent: Wednesday, July 03, 2002 11:01 PM
Subject: RE: [thelist] Visual Basic / Cold Fusion - download image help


> Thanks for the suggestion but I don't have ftp access to the images.
> Only http.  How would you write a program to download
> http://www.google.com/images/res0.gif to the hard drive?





More information about the thelist mailing list