Hello sir/Madam,
I am currently testing your component with a asp.net MVC application. I need passing unicode data over the web. When I save the unicode data in an ocsv file, the component loads it successfully. But when passing the unicode data as a stream, the unicode characters do not show correctly in the component. What is the problem?
Best Regards
Hello,
Thank you for contacting us with this problem. Could you please provide us with your code that sends data as a stream? This will help us much to identify the source of the problem.
Best Regards
Dear Iryna, Hello.
Please take a look at my source code snippet:
public ActionResult GetCsv(int id){
DataTable t1 = DtObject.GetDataTable(id);
byte[] compressed = Flexmonster.CSVCompressor.Compress(t1.ToCSV(),',');
return File(compressed, "text/ocsv");
}
if I save the file then manually load it to flex it works fine but when I want to send the content directly from my controller to flexmonster it does not work.
Also my config to get csv is as following:
<config>
<dataSource type=""csv"" tableType=""flat"">
<filename>myDomain/ControllerDirectory/GetCsv?id=1</filename>
</dataSource>
.....
</config>
Best Regards
Hello,
Thank you very much for the code snippet.
Could you please change the content type from "text/ocsv" to "application/octet-stream" which is for binary files?
Please let me know if the content type solves the problem. I will appreciate your feedback.
Best Regards