摘要: 第一步:添加app.log4net配置文件<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /></configSections><log4net> <root>
阅读全文
posted @ 2011-07-05 15:34 阿拉伯顶峰 阅读(117) 评论(0)
编辑
摘要: public bool 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.CreateDirectory(ff.DirectoryName); System.IO.FileStream fs = System.
阅读全文
posted @ 2011-07-05 15:15 阿拉伯顶峰 阅读(11) 评论(0)
编辑