Results 1 to 4 of 4

Thread: DownLoading Pics

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    DownLoading Pics

    What is the most efficient way to down load
    jpegs from the internet.
    I need to download 50 pics at about 15k a piece.

    As of now i am using......
    VB Code:
    1. Public Declare Function URLDownloadToFile Lib "urlmon" Alias _
    2.     "URLDownloadToFileA" (ByVal pCaller As Long, _
    3.     ByVal szURL As String, _
    4.     ByVal szFileName As String, _
    5.     ByVal dwReserved As Long, _
    6.     ByVal lpfnCB As Long) As Long
    7.  
    8.  
    9. Public Function DownloadFile(URL As String, _
    10.     LocalFilename As String) As Boolean
    11.  
    12.     Dim lngRetVal As Long
    13.    
    14.     lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
    15.    
    16.     If lngRetVal = 0 Then DownloadFile = True
    17.  
    18. End Function

    This takes about 12 sec(at worst) on an OK connection.
    Is there a way I can speed this process up?

    Thanks in advance

    Seahag

  2. #2

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    One other thing i thought of.

    I need to load these pics into memory.
    can i skip the saving to the hard drive and
    load the pics from the internet directly into
    memory?

    That is all

    Seahag

  3. #3

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Can anyone help

    ^^.....

  4. #4

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    last bump -

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