2009年4月15日

C#检测上传图片是否安全函数

摘要: //添加引用System.Text;//添加引用System.IO;/// /// C#检测上传图片是否安全函数 /// /// public void CheckPictureSafe(string strPictureFilePath) { bool strReturn = true; if (!File.Exists(strPictureFilePath)) { StringBuilder str_Temp = new StringBuilder(); try { using (StreamReader sr = new StreamReader(strPictureFilePat... 阅读全文

posted @ 2009-04-15 04:51 风灵溪清 阅读(293) 评论(0) 推荐(0) 编辑

导航