Solved

Upload File to PHP webservice

Posted on 2008-10-07
1
2,020 Views
Last Modified: 2008-10-27
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
Comment
Question by:ocsurf
1 Comment
 
LVL 2

Accepted Solution

by:
AdiF earned 500 total points
ID: 22664983
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now