Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string sProductID = Request.QueryString["id"];
                KiiniNet.Entities.Operacion.Area area = _servicioArea.ObtenerAreaById(int.Parse(sProductID));
                Byte[] bytes        = area.Imagen;
                string base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
                Image1.ImageUrl      = "data:image/jpg;base64," + base64String;
                Image1.Visible       = true;
                Response.ContentType = "image/jpg";
                Response.OutputStream.Write(area.Imagen, 0, area.Imagen.Length);
                //byte[] bytes = area.Imagen;
                //string base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
                //Image1.ImageUrl = "data:image/jpg;base64," + base64String;
                ////string sProductID = Request.QueryString["id"];
                ////KiiniNet.Entities.Operacion.Area area = _servicioArea.ObtenerAreaById(int.Parse(sProductID));
                //Response.BinaryWrite(area.Imagen);

                //Response.End();
            }
        }
Ejemplo n.º 2
0
 public void Actualizar(int idArea, KiiniNet.Entities.Operacion.Area puesto)
 {
     base.Channel.Actualizar(idArea, puesto);
 }
Ejemplo n.º 3
0
 public void Guardar(KiiniNet.Entities.Operacion.Area area)
 {
     base.Channel.Guardar(area);
 }