문제

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

http://www.tugberkugurlu.com/archive/creating-custom-csvmediatypeformatter-in-asp-net-web-api-for-comma-separated-values-csv-format

And it work fine, if not one problem:

I am not getting the hole data on csv file.

enter image description here

and on my csv i am getting 172 lines:

enter image description here

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;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top