|
在网站下载图片
使用http 方式正常下载,并在窗体显示,但是改写为 whttp 方式就不能正常操作,请指教一下,其中的差别在哪里?同时应该注意哪些方面
http 方式
- str_url="http://pay.wanmei.com/e/servlet/getrandomimg?r=" + math.random()
- var http = inet.http();
- http.flags = 0x80000000 //_INTERNET_FLAG_RELOAD//图片都不一样
- ImgBuffer,errmsg = http.get(str_url)
- winform.picturebox.image = ImgBuffer
- http.close();//释放资源
复制代码
whttp
- str_url="http://pay.wanmei.com/e/servlet/getrandomimg?r=" + math.random()
- var whttp = inet.whttp();
- whttp.flags = 0x80000000 //_INTERNET_FLAG_RELOAD//图片都不一样
- ImgBuffer,errmsg = whttp.get(str_url)
- winform.picturebox.image = ImgBuffer
- whttp.close();//释放资源
复制代码
|
|