可以考虑把文件用Base64编码后通过WS传递,这样传递的其实就是string了,如:byte [] bytes;//打开文件并得到其byte[]using ( Stream stream = openFileDialog1.OpenFile() ) { bytes = new byte[ stream.Length ]; stream.Read( bytes, 0, ( int ) bytes.Length );}//base64编码string statisticsByBase64 = Convert.ToBase64String( bytes, 0, bytes.Length );
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货