Beispiel #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);
 }
Beispiel #2
0
 public static void GenerateCode()
 {
     HttpContext.Current.Session[VerificationHelp.VcSessionKey] = VerificationHelp.GenerateCode(null);
 }