private Image GetImage(string fileName)
{
byte[] bytes = File.ReadAllBytes(fileName);
using (MemoryStream ms = new MemoryStream(bytes))
{
return Image.FromStream(ms);
}
}
Image.FromFile 从数据库读取流加载图片
最新推荐文章于 2023-04-10 20:10:13 发布