string path = project.Variables["Path"].Value; // переменная путь к картинке
Image image = Image.FromFile(path);
string base64String = string.Empty;
using (MemoryStream ms = new MemoryStream())
{
image.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
byte[] imageBytes = ms.ToArray();
base64String = Convert.ToBase64String(imageBytes);
}
var result = ZennoPoster.CaptchaRecognition("MonkeyEnter.dll", base64String, null);
return result;