private void ReadOneImg(byte[] ImgBuf)
{
string strReadFileName = "text.jpg";
FileStream fs;
fs = new FileStream(strReadFileName, FileMode.OpenOrCreate, FileAccess.Read);
fs.Read(ImgBuf, 0, (int)fs.Length);
fs.Close();
}
C#中将文件读取到byte[] buf中
最新推荐文章于 2023-02-27 16:02:59 发布