Hello Ashish,
Looking at your client code snippet first thing you need to do is to change very first line to read as follows
urlS="http://abc.ashx";
The next thing is to change the line which creates
postDataStream1
. On this line you are passing
boundry
&
jsonRequestS
to
GetPostStream
. Assuming that
jsonRequestS
is a string all you need to do is change that line to
handler.GetPostStream(boundary, "key=" + jsonRequestS);
Remember POST data is sent in "key=value" format. Since you are transferring any file(s), ContentTypeas "multipart/form-data; boundary=-------------------------334234ds" is unnecessary. ContentType as "application/x-www-form-urlencoded" should be sufficient.
regards,