I have implemented a Restful web service in C# .Net and I want to enable users to upload images via this.
What I currently have is a service that only accepts text data. Ideally I need to get an image from the user and store it in my database.
[OperationContract]
[WebInvoke(UriTemplate = "/{key}", Method = "POST")]
ResponseStatus InsertSensor(string key, Image image);
My question what is the most efficient way to do this?
Many Thanks,