随笔分类 -  ASP.NET

抓取网页数据
摘要:1 /// <summary> 2 /// 人民网取数据 3 /// </summary> 4 /// <returns></returns> 5 private MatchCollection GetDataInternetWeb(string strSourceUrl,string strRegex,int source) 6 { 7 try 8 { 9 10 string web_url = st... 阅读全文

posted @ 2012-12-24 10:00 hardy_Wang 阅读(178) 评论(0) 推荐(0)

二进制图片格式转换
摘要:View Code 1 public static bool IsAllowedExtension(byte[] imgArray, FileExtension[] fileEx) 2 { 3 MemoryStream ms = new MemoryStream(imgArray); 4 System.IO.BinaryReader br = new System.IO.BinaryReader(ms); 5 string fileclass = ""; 6 byte buffe... 阅读全文

posted @ 2012-08-30 13:45 hardy_Wang 阅读(385) 评论(0) 推荐(0)

导航