Results 1 to 4 of 4

Thread: How to Get/Download image using WinSck

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    How to Get/Download image using WinSck

    Hi,
    How can i GET/DOWNLOAD image from web(HTTP) using WinSock?

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

    Thansk .
    Y.P.Y

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: How to Get/Download image using WinSck

    Have a look at the following link

    Download a file - URLDownloadToFile

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: How to Get/Download image using WinSck

    This is freezable for Application.
    I used "Inet".
    Thanks
    Y.P.Y

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    Iran
    Posts
    237

    Re: How to Get/Download image using WinSck

    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
    Y.P.Y

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width