WCF/WF - Returning 415 error while saving image into Database using WCF Service(BasicHttpBinding)

Asked By Arun Tej on 28-Jun-13 10:12 PM
Hi everyone,

   I am saving an image into Database(In DB - Image type is var binary) using WCF Services, and i have given the following
     Binding - BasicHttpBinding
     ContentType - application+xml
     Charset - utf-8

  but i am getting the 415 error like the remote server returns 415 "Unsupported Media Type”. Please help me resolve this.

Thanks in Advance,
Teja.
Robbe Morris replied to Arun Tej on 29-Jun-13 05:09 PM
application+xml

xml is text.  Your image is binary and the input parameter to your WCF service method would be a byte[]