Limit of 88 bytes on response.write?
Posted
by
Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2012-12-13T22:13:25Z
Indexed on
2012/12/17
23:03 UTC
Read the original article
Hit count: 260
I am trying to serve a csv file from a wcf service, as a string response.
It looks like this:
HttpContext.Current.Response.AddHeader("Content-disposition", "attachment; filename=ImportErrors.csv");
HttpContext.Current.Response.ContentType = "text/csv";
HttpContext.Current.Response.Write(myCsvContent);
The response StatusCode is set to (int)HttpStatusCode.OK (200)
It works, but I am only getting 88 bytes of my csv and the rest is cut off (not shown).
Any suggestions on where to look? I don't see any custom entries in my web.config that are setting a limit.
© Stack Overflow or respective owner