0

Can anyone tell me what's the prob with the following code?

outputStream.writeBytes(twoHyphens + boundary + lineEnd);

outputStream.writeBytes("Content-Disposition: form-data; name=\"key\"" + lineEnd);

outputStream.writeBytes(lineEnd);

outputStream.writeBytes("test");

outputStream.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);
Bo Persson
  • 90,663
  • 31
  • 146
  • 203
Nishant Mendiratta
  • 760
  • 13
  • 25
  • You should give us more informations about your problem. Is there any Exception? Or are there any other problems? – PKeidel Oct 07 '12 at 18:54
  • im getting nothing out of this . I have code for uploading and it's working fine but i need to know how can i send parameters check this link for hint -> (http://stackoverflow.com/questions/8900337/httpurlconnection-how-to-sending-parameters-via-post/12771165#12771165) – Nishant Mendiratta Oct 07 '12 at 19:04

1 Answers1

0

try to add outputStream.flush() at the end

user1049280
  • 5,176
  • 8
  • 35
  • 52