MemoryStream ms=new MemoryStream();
ms=new System.IO.MemoryStream(new BizLogic.Webinfo.DB_WebinfoUpfiles().detail_WebinfoUpfiles(dvHeadNews[0]["attachid"].ToString()).fileContent);
System.Drawing.Image img=System.Drawing.Image.FromStream(ms);
if(img.Width/img.Height>= _width/_height)
{
if(img.Width>_width)
{
_height=(img.Height*_width)/img.Width;
}
}
else
{
if(img.Height>_height)
{
_width=(img.Width*_height)/img.Height;
}
}
img.Dispose();
headNewsImage="<img width=/""+_width+"/" height=/""+_height+"/" src=/""+ InstallPath +"readRealImages.aspx?id="+dvHeadNews[0]["attachid"] +"/" border=/"0/">";