コード例 #1
0
ファイル: CutPic.aspx.cs プロジェクト: zoomlacms/web036
 protected void Save_Btn_Click(object sender, EventArgs e)
 {
     if (NowImg_Hid.Value.Equals(SourceImg_Hid.Value))
     {
         function.WriteErrMsg("请修改后再保存");
     }
     byte[] img = SafeC.ReadFileByte(NowImg_Hid.Value);
     SafeC.SaveFile(SourceImg_Hid.Value, Path.GetFileName(SourceImg_Hid.Value), img);
     function.Script(this, "AfterSave();");
 }
コード例 #2
0
ファイル: SafeSC.cs プロジェクト: linrb/CMS-Source-code
 public static byte[] ReadFileByte(string vpath)
 {
     return(SafeC.ReadFileByte(vpath));
 }