c#读取文件函数
来源:百度知道 编辑:UC知道 时间:2024/06/14 00:54:18
请问c#读取图片的二进制信息函数是什么?因为图片也是二进制方式存储的,我想知道是什么类的哪个函数来读取它,以及更改它
string ImageFile = System.IO.Path.GetDirectoryName(CurrentExeName) + "\\F2.jpg";
FileStream fs = new FileStream(ImageFile, FileMode.OpenOrCreate, FileAccess.Write);
fs.Write(MyData, 0, ArraySize);
fs.Close();
用的是System.IO