摘要:
public byte[] FileToStream(string path) { byte[] s = null; StreamReader reader = new StreamReader(path); s = File.ReadAllBytes(path); return s; } public void StreamToFile(string path, byte[] bytes) { FileStream stream = null; stream = new FileStream(path, FileMode.Create, FileAccess.Write, FileSha.. 阅读全文