public partial class SystemManage_ModulePicture : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
         if (!IsPostBack)
        {
           string strModuleID=Request.QueryString["ModuleID"].ToString();
            Module instance = new Module();
            byte[] imgData = instance.GetOneModule(strModuleID).IconFile;           //得到二进制图片数据

            if (imgData != null && imgData.Length != 0)
            {
                try
                {
                    System.IO.MemoryStream ms = new System.IO.MemoryStream(imgData);
                    System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
                    img.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);        //展现图片
       

相关文章:

  • 2021-09-05
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-01-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-11-29
相关资源
相似解决方案