PDA

Click to See Complete Forum and Search --> : How to Get/Download image using WinSck


Yoosha
Jan 20th, 2008, 04:15 AM
Hi,
How can i GET/DOWNLOAD image from web(HTTP) using WinSock?

Ex.: http://www.vbforums.com/images/logo.gif

Thansk :).

Paul M
Jan 20th, 2008, 11:19 PM
Have a look at the following link ;)

Download a file - URLDownloadToFile (http://www.devx.com/vb2themax/Tip/18669)

Yoosha
Jan 21st, 2008, 02:03 AM
This is freezable for Application.
I used "Inet".
Thanks ;)

Yoosha
Jan 21st, 2008, 02:08 AM
Dim Dim_Byt_CaptchaImage() As Byte
Dim Dim_Int_FreeFile As Integer

Dim_Int_FreeFile = FreeFile()
Dim_Byt_CaptchaImage() = Int_General.OpenURL("http://www.vbforums.com/images/logo.gif", icByteArray)

Open App.Path & "\Temp.jpg" For Binary Access Write As #Dim_Int_FreeFile
Put #Dim_Int_FreeFile, , Dim_Byt_CaptchaImage()
Close #Dim_Int_FreeFile