public Result UploadFileCover(Byte[] fileData, string account, string fileExtension, string fileCoverName)
        {
            Result result = new Result();

            try
            {
                //byte[] coverPhoto = Convert.FromBase64String(fileData);
                //MemoryStream ms = new MemoryStream(coverPhoto);
                //Bitmap bmp = new Bitmap(ms);

                PCB_FileCoverTB pCB_FileCoverTB = new PCB_FileCoverTB();
                pCB_FileCoverTB.FileCoverID    = System.Guid.NewGuid();
                pCB_FileCoverTB.FileCoverName  = fileCoverName;
                pCB_FileCoverTB.FileMD5        = Common.Common.GetMD5Hash(fileData);
                pCB_FileCoverTB.FileExtension  = fileExtension;
                pCB_FileCoverTB.FileSize       = fileData.Length.ToString();
                pCB_FileCoverTB.IsPublish      = false;
                pCB_FileCoverTB.FileCoverURL   = ParameterAPI.GetConfig("DowLoadFileURL").ConfigValue + "//" + account + "//" + pCB_FileCoverTB.FileCoverID.ToString() + "//" + pCB_FileCoverTB.FileCoverName + "." + fileExtension;
                pCB_FileCoverTB.CreateAccount  = account;
                pCB_FileCoverTB.CreateDateTime = DateTime.Now;


                String dir = @ParameterAPI.GetConfig("FileURL").ConfigValue + @"\\" + account + @"\\" + pCB_FileCoverTB.FileCoverID.ToString();
                if (!Directory.Exists(dir))
                {
                    Directory.CreateDirectory(dir);
                }
                string saveToUrl = dir + @"\\" + pCB_FileCoverTB.FileCoverName + "." + fileExtension;
                result = Common.Common.FileWrite(saveToUrl, fileData);
                if (!result.IsOK)
                {
                    return(result);
                }
                //bmp.Save(saveDir);
                //bmp.Dispose();
                //ms.Close();
                PCBEntities pCBEntities = new PCBEntities();
                pCBEntities.AddToPCB_FileCoverTB(pCB_FileCoverTB);
                result.IsOK = Convert.ToBoolean(pCBEntities.SaveChanges());
                if (!result.IsOK)
                {
                    Directory.Delete(dir, true);
                    result.Description = "上传失败";
                    return(result);
                }
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog(GetType()).Info(ex.StackTrace);
                result.IsOK        = false;
                result.Description = ex.InnerException.Message;
            }
            return(result);
        }