随笔分类 -  文件流

摘要:/// <summary> /// 获取等比例缩放图片的方法 /// </summary> /// <param name="imgPath">待缩放图片路径</param> /// <param name="savePath">缩放图片保存路径</param> /// <param name="format">缩放图片保存的格式</param> /// <... 阅读全文
posted @ 2012-12-13 10:18 poisson_notes 阅读(8796) 评论(0) 推荐(2)
摘要:一 .Server.MapPath的命名空间: 习惯用Access的朋友都知道:ADO.NET链接Access数据库经常这么写: strcon="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("datebase/indexDB.mdb"); 这里用Server.MapPath得到应用程序的物理... 阅读全文
posted @ 2012-12-07 10:44 poisson_notes 阅读(1106) 评论(0) 推荐(0)
摘要:原文地址:http://bbs.dingdi.com/thread-763404-1-1.html 阅读全文
posted @ 2010-03-12 13:08 poisson_notes 阅读(797) 评论(0) 推荐(0)
摘要:/// <summary> /// 将 Stream 转成 byte[] /// </summary> public static byte[] StreamToBytes(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, byte... 阅读全文
posted @ 2010-03-04 11:39 poisson_notes 阅读(213) 评论(0) 推荐(0)