Ejemplo n.º 1
0
        //public DataTable SaveQrUser(string qr)
        //{
        //    try
        //    {
        //        return dat.OperarProcedimiento("CALL INSE_QR ('" + qr + "');");
        //    }
        //    catch (Exception io)
        //    {
        //        Estructura err = new Estructura();
        //        return err.GetError(io.Message);
        //    }
        //}

        public DataTable SaveQrUser(byte[] imagen)
        {
            try
            {
                List <Parametro> p = new List <Parametro>();
                p.Add(new Parametro("@VALOR", imagen, "MEDIUMBLOB", ParameterDirection.Input));
                return(dat.ExecuteProcedure(" INSE_QR", p));
            }
            catch (Exception io)
            {
                Estructura err = new Estructura();
                return(err.GetError(io.Message));
            }
        }