public ActionResult VerCode() { VerificationCode vc = new VerificationCode(); Session["ver"] = vc.GetVerCode(); return(File(vc.StreamVerCod(), @"image/jpeg")); }