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