Results 1 to 5 of 5

Thread: Web Download

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    how to download a file from the web, with out using internet explorer dll's so it will be compatible also with netscape users?

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Inet Control
    OpenURL method

    Use a string for a text/html file
    Use a byte array for anything else
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    how to download and save a gif file?

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Like I said, with a byte array...

    Code:
    Private Sub GetGif()
    
        Dim GifBytes() As Byte
        
        GifBytes = Inet1.OpenURL("Http://www.gif.com/gif.gif", icByteArray)
        Open "C:\Temp\gif.gif" For Binary As #1
        Put #1, , GifBytes()
        Close #1
    
    End Sub
    see, simple!. It's all in the MSDN help files under OpenUrl
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    55
    THANKS

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