string conn = ConfigurationManager.AppSettings["ConnectionString"].ToString();
            SqlConnection Connection = new SqlConnection(conn);
            Connection.Open();
            String SqlCmd = "select * from LocationImage where LIIntNo='"+imageid+"' ";
            SqlCommand CmdObj = new SqlCommand(SqlCmd, Connection);

            SqlDataReader SqlReader = CmdObj.ExecuteReader();
            SqlReader.Read();
            Response.ContentType = "image/jpeg";
            Response.OutputStream.Write((byte[])SqlReader["LocImage"], 0, ((byte[])SqlReader["LocImage"]).Length);
            Response.End();
            Connection.Close();

相关文章:

  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-02-26
  • 2021-09-14
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案