Ejemplo n.º 1
0
        public override Captcha resolveRecaptcha(byte[] imageBytes, string Username, string Password)
        {
            Captcha objCaptcha = new Captcha();

            try
            {
                API.CAPTCHA.CAPTCHA objAPICaptcha = new API.CAPTCHA.CAPTCHA();

                string Captcha = objAPICaptcha.UploadCaptchaAndGetText(Username, Password, imageBytes);
                objCaptcha.CaptchaImage = Captcha;
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
            }
            return(objCaptcha);
        }
Ejemplo n.º 2
0
        public override Captcha resolveRecaptcha(byte[] imageBytes, string Username, string Password)
        {
            Captcha objCaptcha = new Captcha();
            try
            {
                
                API.CAPTCHA.CAPTCHA objAPICaptcha = new API.CAPTCHA.CAPTCHA();

                string Captcha = objAPICaptcha.UploadCaptchaAndGetText(Username, Password, imageBytes);
                objCaptcha.CaptchaImage = Captcha;
              
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
            }
            return objCaptcha;
        }