I have a File i want to upload to a Webservice, but it needs additional params, so I create some hidden fields with the associated name:value pairs to get pushed to the serv
When you send a stream, it will actually send everything in the request. I did this to get the data:
public string NewImage(Stream data){
NameValueCollection PostParameters = HttpUtility.ParseQueryString(new StreamReader(data).ReadToEnd());
string server = PostParameters["server"],
string datasource = PostParameters["datasource"],
string document = PostParameters["document"];
string image_id = PostParameters["image_id"];
var img = PostParameters["File"];
//do other processing...
}