예제 #1
0
 public static Stream GetImageStream()
 {
     System.IO.MemoryStream ms = new System.IO.MemoryStream();
     VerificationHelp.GetImage().Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
     ms.Flush();
     ms.Position = 0;
     return(ms);
 }
예제 #2
0
 public static void GenerateCode()
 {
     HttpContext.Current.Session[VerificationHelp.VcSessionKey] = VerificationHelp.GenerateCode(null);
 }