[C#] 文件到二进制刘 →→→→→进入此内容的聊天室

来自 , 2019-03-05, 写在 C#, 查看 146 次.
URL http://www.code666.cn/view/38181d99
  1.     private byte[] FileToSteam(string File)
  2.     {
  3.  
  4.         FileStream fs = new FileStream(File, FileMode.Open);
  5.         int streamLength = (int)fs.Length;
  6.         byte[] BTFile = new byte[streamLength];
  7.         fs.Read(BTFile, 0, streamLength);
  8.         fs.Close();
  9.         return BTFile;
  10.     }

回复 "文件到二进制刘"

这儿你可以回复上面这条便签

captcha