public CourseSystem(string id, string password, OutputDelegate logDelegate, OutputDelegate stateDelegate) { _httpHelper = new HTTPHelper(10000); _jpgreader = new Readjpg(); UserId = id; _userPassword = password; _logDelegate = logDelegate; _stateDelegate = stateDelegate; }
static string GetResponseJpgCode(HttpWebRequest request, Readjpg jpgreader) { var response = (HttpWebResponse)request.GetResponse(); var rawStream = response.GetResponseStream(); var jpgcode = jpgreader.Bmp2Text(rawStream); rawStream.Close(); return(jpgcode); }
private static string GetResponseJpgCode(HttpWebRequest request, Readjpg jpgreader) { HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream RawStream = response.GetResponseStream(); string jpgcode = jpgreader.Bmp2Text(RawStream); RawStream.Close(); return(jpgcode); }