Hi Im using the following code: http://vikaskanani.wordpress.com/2011/01/11/android-upload-image-or-file-using-http-post-multi-part/
To POST an image to a WCF Rest service. I do not know how do configure the WCF Rest Service, can you help? My current interface looks like this:
[OperationContract]
[WebInvoke(BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "SaveImage",
Method = "POST")]
void SaveImage();
Which does not work... might contain several errors?
It's wrong. You should send Stream argument as a parameter for SaveImage method, and it's better to set TransferMode="StreamRequest" in your service web.config.
When POSTing image use binary/octet-stream content type and binary data in body of message. On server side - read it from stream.