public ActionResult GetCode() { string strImageCode = string.Empty; byte[] codeImage = PublicHelper.GetImageCode(out strImageCode); return(File(codeImage, "image/jpeg")); }