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 = "
";