fileStream.Read(Content,0,Content.Length) ; 在Host在读取到Kaction之后,把它保存到指定文件夹下面 MemoryStream meoeryStream=new MemoryStream(k_Action.context); FileStream fileStream=new FileStream(@"d:\"+k_Action.filename,FileMode.Create); meoeryStream.WriteTo(fileStream); fileStream.Close(); meoeryStream.Close(); 发现不能在对象中又定义新的对象。在准备发送到HOST上会提示“包含潜在危险的类型”。 [Serializable] public struct kAction { public string filename; public byte[] context; public FineInfo fileInfo;//这里
}; 记录一下自己的心得。有空我会好好整理下下回做篇完整点的。
cnzc's blogs (出处:清风网络学院)
上一篇:将Web站点下的绝对路径转换为虚拟路径
下一篇:ASP.NET2.0 WebRource,开发微调按钮控件
|