111,126
社区成员
发帖
与我相关
我的任务
分享
FileStream stream = new FileStream("c:\\1.bin", FileMode.Open);
byte[] bs = new byte[stream.Length];
stream.Read(bs, 0, bs.Length);
byte[] filecontent= File.ReadAllBytes(@"文件地址");
OpenFileDialog of = new OpenFileDialog();
string receivePath=null;
//选择你要读的文件
if (of.ShowDialog() == DialogResult.OK)
{
receivePath = of.FileName;
}