none
wcf adds newline character in the response when i construct the html image url in the list RRS feed

  • Question

  • Hello,

    i am new to the wcf service.

    i generate the image url as below in the service contract as below:

    lstScoreCardMessages[i].Description = String.Format("<img src=\"{0}/{1}/{2}\"/>", messagepath, clientid, imagename);
    which is actually generate following image url html code as below:

    <img src="http://xyz.com/abc/5/abc_107.jpg"/>
    but when i test the wcf response in the wcftestclient.exe, i got the following result:

    <img src=\"http://xyz.com/abc/5/abc" +
        "_107.jpg\"/>
    for this reason the image is not shown properly in the client side when html render.

    Can you please help me out from the above issue.

    Thanks in the advance.

    Brijesh Vaidya India

    Tuesday, August 6, 2013 5:37 AM

Answers

All replies