Salut , je veux télécharger une image sur le net et j'ai un message d'erreur :
"Erreur d'execution '35752':
l'URL est mal construit"
voici le code :
dim strURL as String
strURL = "http://www.vbfrance.com/gfx/logos/logovb.gif"
bData() = Inet1.OpenURL(strURL, icByteArray)
Open App.Path & "\temp.jpg" For Binary Access Write As #1
Put #1, , bData()
Close #1
mais si je place pas l'url dans une variable , ca marche
bData() = Inet1.OpenURL("http://www.vbfrance.com/gfx/logos/logovb.gif", icByteArray)
Open App.Path & "\temp.jpg" For Binary Access Write As #1
Put #1, , bData()
Close #1
Pourquoi ??