Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML Downloads since Foxpro
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
HTML Downloads since Foxpro
Miscellaneous
Thread ID:
00291424
Message ID:
00291424
Views:
61
Im Trying to develop an aplication with the Internet Transfer Protocol, I need to use HTML as protocol, not FPT as is common, i have found this example in Inet help file, but this procedures are implemented in Visual Basic.

My trouble consist to find the way to declare a variable as Byte, if I change those procedures to work with text, it works but if i download a .dbf file it return to me an array and i don't find the way to save this array to my computer.

I try with FOPEN(), FCLOSE() functions but it didn't work.


Private Sub Form_DblClick()
Inet1.AccessType = icUseDefault
Dim b() As Byte
Dim strURL As String

' Presuming this is still a valid URL.
strURL = "http://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"
End Sub

Thanks and Regards.
Next
Reply
Map
View

Click here to load this message in the networking platform