예제 #1
0
 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
 public static byte[] ReadFileByte(string vpath)
 {
     return(SafeC.ReadFileByte(vpath));
 }