I have a VB6 application that I want to provide my users a feature where they can backup their data file to the cloud. I have a system in place where they can upload a file to the cloud and store it, now I want to make it a little easier by a menu option. File..Backup to Cloud would create a zip archive of the database (Access 97 MDB) and then send 开发者_运维问答the byte array to an ASMX (or WCF) web service.
Can someone share with me how to take a file (500 KB to 1.5 MB on average), in VB6, and send it to an ASMX web service? I need to be "firewall friendly" so keep that in mind as well, so something across Port 80 (HTTP) is preferred.
VB6 supports COM components. You should be doing your new development by creating COM components in a .NET language (for instance, VB.NET or C#), and having your VB6 application call them. That way, you get the benefit of using software developed using modern tools, but you get to call them from your obsolete and unsupported VB6 code.
Use WinHttpRequest
object.
VBA/Corel Draw: How to send binary and text file in HTTP POST request to server from VBA/VB6 script running from Corel Draw 12/X4?
Post Method + WinHttpRequest + multipart/form-data
精彩评论