Hi Nicholas,
I have created OutMulti which extends OutMultiPart class and implemented
required method.
{CODE}
OutMulti outMulti = new OutMulti();
List<OutPart> list = new ArrayList<OutPart>();
OutPart outPart = new OutPart();
outPart.addHeader("accept", "text/plain");
outPart.setContentType("multipart/form-data");
outPart.writePart(
new FileOutputStream("c:/ProvisioningPolicy.xml"),
getProviders());
//outPart.setBody(">>>>>>>>>Sushil");
list.add(outPart);
outMulti.setIterator(list.iterator());
resource.post(outMulti);
Now, at server side, I am getting the object of InMulitPart, but its an
empty object. There is no value in the object.
Am I doing something wrong? or any suggestion?
--
View this message in context:
http://apache-wink-dev.3470905.n2.nabble.com/REST-Client-failed-to-upload-file-tp5044819p5074097.html
Sent from the Apache Wink Dev mailing list archive at Nabble.com.