public Byte[] Tupian() 获取一张图片的字节数组
        {
            FileStream fs = new FileStream(@"G:\smartrt\bin\Debug\Data\tpl\111.jpg", FileMode.Open);
            int filelength = 0;
            filelength=(int) fs.Length; //获得文件长度
            Byte[] fl = new Byte[filelength]; //建立一个字节数组
            fs.Read(fl, 0, filelength); //按字节流读取
            fs.Close();
            return fl;
        }
        public static byte[] copybyte(byte[] a, byte[] b)字节数组的合并
        {
            byte[] c = new byte[a.Length + b.Length];
            a.CopyTo(c, 0);
            b.CopyTo(c, a.Length);
            return c;
        }

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案