KearneyKang ,谢谢您的指教。
用代码:byte[] photo = (byte[])Ds.Tables[0].Rows[0]["Fact"];
FileStream myStream = new FileStream("e:\\Htm.html", FileMode.OpenOrCreate, FileAccess.ReadWrite);
BinaryWriter myWriter = new BinaryWriter(myStream);
myWriter.Write(photo);
myWriter.Close();
myStream.Close();
把字段内容转换成Htm.html文件:
装载:RichFact.LoadFile(@"E:\\Htm.html"); |