摘要:
第一步:添加app.log4net配置文件<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /></configSections><log4net> <root> 阅读全文
摘要:
publicbool UploadImg(byte[] fileBytes,string path) { try { //文件保存目录路径 String savePath ="/upload/"; String dirPath = Server.MapPath(savePath); FileInfo ff =new FileInfo(dirPath+path); if (!ff.Directory.Exists) Directory.CreateDir... 阅读全文