文章详情
时间:2011-05-16 来源:joe62
代码如下:
public static Image BytesToImage(this byte[] bytes)
{
Image image = null;
if (bytes != null)
using (MemoryStream sm=new MemoryStream(bytes))
image = Image.FromStream(sm);
}
return image;
问题在此:删除using, 在 Image 的生存期内,必须使流保持打开。详情见msdn
Binance交易app安装错误排查
币安app安装卡住解决方案
安洁拉世界奇幻之旅手游下载
1970-01-01