K
K
KP580BM80A2014-01-04 01:17:53
CAPTCHA
KP580BM80A, 2014-01-04 01:17:53

Why can't I send captcha to pixodrom as a base64 string?

Hey!
I saw that pixodrom ( pixodrom.com ) reduced the price for 1000 captchas to $0.7 and decided to try it.
So, when I started writing sending an image using the Base64 method, I began to receive ERROR_500
Something I got confused and obviously doing something wrong. Does anyone have a ready code to send an image to this service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Error_403_Forbidden, 2014-01-04
@KP580BM80A

And what exactly is the problem?
There is also a code on the site
pixodrom.com/static/Kod-na-c-sharp-dlya-raspoznava...
and you use

var ac = new anticaptcha("твой_ключ");
ac.is_russian = 1;//если русская капча, как у Яндекса

string result = "";
//а дальше используешь один из методов отправки на выбор:
result = ac.UploadFile("captcha.jpg");
result = ac.UploadFileBase64("captcha.jpg");
result = ac.UploadImage(image);
result = ac.UploadImageBase64(image);
result = ac.UploadURL("http://site.com/captcha.jpg");
result = ac.UploadURLBase64("http://site.com/captcha.jpg");

//выдрано из метода Recognize:
string[] pars = result.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
if (pars.Length > 1 && pars[0] == "OK")
{
  id = Convert.ToInt64(pars[1]);//демаю, что конвертировать в long не обязательно, можно оставить строкой
  string url = String.Format("http://pixodrom.com/res.php?key={0}&action=get&id={1}", key, id);
  result = "CAPCHA_NOT_READY";
  while (result == "CAPCHA_NOT_READY")
        {
        	Thread.Sleep(3000);
                result = GetPage(url);
                Console.WriteLine("{0}", result);
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question