Upload a file using VB6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • douglandmesser
    New Member
    • Feb 2008
    • 10

    Upload a file using VB6

    Hey all. I'm trying to figure out how to upload a file to a web server using VB6. I do not want to use FTP functions. I want to send it directly from the hard drive to the web server. I have seen plenty of methods using .NET, but I don't see any using VB6. I realize I will need to provide a user/pass to the web server to upload a file, so I'll need some way to do that. Any help would be greatly appreciated. I have been working on the issue for about a week now and I have successfully downloaded a file in VB6. Now the final piece is needed. The least amount of code would be appreciated. I don't need a text box to enter the URL or remote file name because it's always just one file. Thanks.
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    I'm sorry...you want to move a file from a local PC to a remote web server .....over the internet (not a local intranet) and you DON'T want to use FTP?

    Maybe one of the experts can correct me but I believe FTP is the only protocol available for doing said action. Even what you describe as "sending it directly from the pc to the web server" is exactly what FTP is.

    There are alot of FTP functions available for vb6.0 out there. I am unaware of any other controls, functions, etc to move whole files over the internet unless you parse the file down to pure data and send it as a record, and write it back out on the other side.

    Sample:

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by jeffstl
      Maybe one of the experts can correct me but I believe FTP is the only protocol available for doing said action. Even what you describe as "sending it directly from the pc to the web server" is exactly what FTP is.
      Can't one also use the HTTP protocol to transfer files?

      Comment

      • jeffstl
        Recognized Expert Contributor
        • Feb 2008
        • 432

        #4
        Um, Yes that is true :-)

        I guess I wasn't picturing it that way though since HTTP is dependant on a browser to display a file properly depending on the type.

        Or also that (typically I guess) HTTP is used to send files requested from a web server via URL. Not files from a local desktop application.... unless that application was the one that generated the files I guess.

        Your trying to confuse me now aren't you? ;-)

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by jeffstl
          ...Your trying to confuse me now aren't you? ;-)
          No, just trying to clarify. I haven't done anything much with the web, just local Windows stuff.

          Comment

          Working...