For everyone who find the "data loss" problem when using StreamWriter: This is the fix i have found:
myStreamWriter.AutoFlush = true;
题
I have created my custom CSV media type formatter following these two tutorials:
http://www.asp.net/web-api/overview/formats-and-model-binding/media-formatters
And it work fine, if not one problem:
I am not getting the hole data on csv file.
and on my csv i am getting 172 lines:
What could be causing this problem?
没有正确的解决方案
其他提示
For everyone who find the "data loss" problem when using StreamWriter: This is the fix i have found:
myStreamWriter.AutoFlush = true;