try { FileStream fs = new FileStream(sFileAllName, FileMode.OpenOrCreate,FileAccess.Write); BinaryReader br = new BinaryReader(fs); byData = br.ReadBytes((int)fs.Length); fs.Close(); }
执行
FileStream fs = new FileStream(sFileAllName, FileMode.OpenOrCreate,FileAccess.Write);
包流不可读的错误,
解决办法:去掉<span style="font-family: Arial, Helvetica, sans-serif;">FileAccess.Write问题解决</span>
<pre name="code" class="csharp">FileStream fs = new FileStream(sFileAllName, FileMode.OpenOrCreate);
时间: 2024-10-18 19:27:50