예제 #1
0
 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;
 }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }