
//文件绝对路径 File
private byte[] FileToSteam(string File)
{
FileStream fs = new FileStream(File, FileMode.Open);
int streamLength = (int)fs.Length;
byte[] BTFile = new byte[streamLength];
fs.Read(BTFile, 0, streamLength);
fs.Close();
return BTFile;
}



by: 发表于:2015-07-10 12:02:36 顶(0) | 踩(0) 回复
不明觉厉!石荣峰 http://shirongfeng.com/
回复评论