G
genc ymeri
Hi,
We are struggeling to upload a file through a C# webClient into JBoss web
server. Meanwhile we are able to upload a file from the webserver itself.
The problem is only with C# webClient . The code is pretty simple.
string uriString = saveTargetToAddress.Text;
string postData = textOutput.Text;
try
{
System.Net.WebClient myWebClient = new System.Net.WebClient();
myWebClient.UploadFile(uriString,"POST","C:\\Shared\\XML\\subflowhandler.xml
");
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
Please help !!!!
Thank You very much in advance.
PS:
Error : org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly
We are struggeling to upload a file through a C# webClient into JBoss web
server. Meanwhile we are able to upload a file from the webserver itself.
The problem is only with C# webClient . The code is pretty simple.
string uriString = saveTargetToAddress.Text;
string postData = textOutput.Text;
try
{
System.Net.WebClient myWebClient = new System.Net.WebClient();
myWebClient.UploadFile(uriString,"POST","C:\\Shared\\XML\\subflowhandler.xml
");
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
Please help !!!!
Thank You very much in advance.
PS:
Error : org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly