CDB.Captcha var ch = new CaptchaHelper(); var code = ch.GetRandomEnDigitalText(4); var imgbyte = ch.GetEnDigitalCodeByte(code);