• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2044
  • Last Modified:

Upload File to PHP webservice

I'm trying to find how to upload a file from a Windows application to a php webservice.

Info :
PHP 5
VB.NET 3.5 or 2
0
ocsurf
Asked:
ocsurf
1 Solution
 
AdiFCommented:
You can have your VB.NET application establish an HTTP connection to the web server with a PHP script that checks for an HTTP POST of the file.  Example #2 shows how you would handle the processing of an incoming file within an HTTP POST request: http://ca.php.net/manual/en/features.file-upload.php

You would use System.Net.HttpWebRequest in VB.NET to encode the file contents within the HTTP POST request.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now