代码如下:
Func DownLoadimg($imgUrl)
Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
Local $aData = InetGetInfo($hDownload) ; Get all information.
InetClose($hDownload) ; Close the handle to release resourcs.
EndFunc ;==>DownLoadimg
试了这样也还是一样的问题
Func DownLoadimg($imgUrl)
Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
EndFunc ;==>DownLoadimg
Local $imgUrl = "http://www.google.cn/images/nav_logo4.png"
Func DownLoadimg($imgUrl)
Local $hDownload = InetGet($imgUrl, @TempDir & "\tempjpg.tmp", 1, 1)
Do
Sleep(250)
Until InetGetInfo($hDownload, 2) ; Check if the download is complete.
Local $aData = InetGetInfo($hDownload) ; Get all information.
InetClose($hDownload) ; Close the handle to release resourcs.
EndFunc ;==>DownLoadimg