sending files AND informations by POST in C#
Hey peeps, im lost in this one:
I need to send image thru POST method to the php script waiting on the other side, but i need to send another informations with it too, such as send the file and send info about uploader with it... Everything I've found so far is a way how to upload a file, OR how to send informations, but I need to send them together (the script receives the file with another informations about it).
Thanks in advance,
Soap.
Bechir BejaouiPosted Dec 3, 2008, 10:05 AM
Soap McTavishPosted Dec 3, 2008, 7:31 AM
Bechir BejaouiPosted Dec 2, 2008, 4:06 PM
Soap McTavishPosted Dec 2, 2008, 1:49 PM
Bechir BejaouiPosted Nov 30, 2008, 11:27 AM
System.Net.WebClient oClient = new System.Net.WebClient();
oClient.UploadFile("yourAdress", "POST", "filepath");
if you want to upload data, suppose that you want to upload an Image for example
oClient.UploadData("yourAdress", yourImage);