c# - Raw request body to string array -


i have service code:

 [operationcontract]     [webinvoke(method = "post", uritemplate = "/btnmetadata/", bodystyle = webmessagebodystyle.wrappedresponse, responseformat = webmessageformat.json)]     public list<btnmetadata> btnmetadata()     {         weboperationcontext.current.outgoingresponse.headers.add("cache-control", "no-cache, must-revalidate");         weboperationcontext.current.outgoingresponse.headers.add("expires", "sat, 26 jul 1997 05:00:00 gmt");         var x= encoding.utf8.getstring(operationcontext.current.requestcontext                       .requestmessage.getbody<byte[]>()); 

but found returned x:

x=%5b%228124318066%22%2c%223869383310%22%2c%229417395507%22%5d 

what want is:

8124318066 3869383310 9417395507 

is there .net framework encoding method it?

found example. using httputility.urldecode().

var x = httputility.urldecode("%5b%228124318066%22%2c%223869383310%22%2c%229417395507%22%5d"); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -