Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i accept byte[] parameter in URI templete in restful web service

C#
[OperationContract]
       [WebInvoke(UriTemplate = "{Name},{MobileNo},{District_Name},{District_code},{Taluk_Name},{image}}", Method = "POST")]
        string submitdata(string Name, string MobileNo, string District_Name, string District_code,string Taluk_Name,string image);


I want to recieve the image parameter in base64 but it is throwing error as:

uri is too long
Posted
Updated 23-Jun-15 23:22pm
v3
Comments
CPallini 24-Jun-15 4:44am    
Not clear, please elaborate.
Praveen Raghuvanshi 24-Jun-15 13:38pm    
Image parameter is name of file or content of the file.
I did opposite of this. I have created file upload app. My Rest WCF service API used to take the Stream and through that I used to create the image.
Need more information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900