【发布时间】:2012-10-15 14:16:49
【问题描述】:
我在服务器端创建了 csv 文件。现在我想把它发送给我的 silverlight 客户 通过 WCF RIA 服务。我创建了以下内容:
public byte[] GetMyCSV()
{
string file = @"c:\test.csv";
using (StreamWriter sw = new StreamWriter(file, true, Encoding.GetEncoding(932)))
{
//write csv file content
...
}
???
}
我的服务应该发送字节数组吗?那么如何从 StreamWriter 中获取字节数组?
【问题讨论】:
标签: silverlight file wcf-ria-services