views:

50

answers:

1

Okay so i have code that uploads images

WebClient client = new WebClient();
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
client.UploadFile("Address/upload.php", "POST", @"C:\Test\test.jpg");

For example, the file name will be dynamic and could be anything, so how do i send an image to server and then save it basically through a php script

A: 

I believe this is what you are looking for: http://stackoverflow.com/questions/724391/save-image-from-php-url-using-php

See the accepted answer.

Todd Moses
I believe the question is more how to save the payload of a POST request to a file on the server side using PHP... But I may be wrong.
dtb
yes it is sorry
lee