public ActionResult _GetFTPImage(string ClaimId, string fname) { serializer.MaxJsonLength = int.MaxValue; try { if (!string.IsNullOrEmpty(ClaimId)) { string dcimage = _ftpService.GetFTPFile(fname, new FtpCredentials { FTPAddress = FTPAddress, FTPUserName = FTPUserName, FTPPassword = FTPPassword }); if (!string.IsNullOrEmpty(dcimage)) { return(Json(new Result { Status = ResultStatus.Success, Message = string.Empty, Data = dcimage }, JsonRequestBehavior.AllowGet)); } else { return(Json(new Result { Status = ResultStatus.Success, Message = string.Empty, Data = DefaultImage.Error }, JsonRequestBehavior.AllowGet)); } } } catch (Exception ex) { LoggerService.LogException(ex); return(Json(new Result { Status = ResultStatus.Error, Message = string.Empty, Data = DefaultImage.Error }, JsonRequestBehavior.AllowGet)); } return(Json(new Result { Status = ResultStatus.Success, Message = ValidationMessages.SuccessMessage, Data = null }, JsonRequestBehavior.AllowGet)); }