Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I download a Picture into a File
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00530186
Message ID:
00530192
Vues:
13
>Hi all!
>
>I use the INET ActiveX Object to Access the Internet.
>Problem Saving the given Array from a Gif-Url because FoxPro doesnt do it?
>I'm trying to use the OpenURL("GET",1) Command, wich delivers an Array, wich holds Data.
>
>In Visual Basic it would look like this:
>
>Dim b() As Byte
>Dim strURL As String
>' strURL valid internet Adress
>strURL = "http://www.levelextreme.com/VFPDevCon.jpg"
>b() = Inet1.OpenURL(strURL, icByteArray)
>
>Open "C:\Temp\VFPDevCon.jpg" For Binary Access _
>Write As #1
>Put #1, , b()
>Close #1
>
>Visual Basic knows how to save an Array, but FoxPro doesnt?

Just a guess, but I'd try to load it into a string, then use STRTOFILE() to save it.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform