2012年6月26日
摘要: 向数据库存入blob字段值 string filepath = "D:\\pdf\\2008.pdf"; FileStream fs = null; fs = new FileStream(filepath, FileMode.Open, FileAccess.Read); Byte[] blob = new Byte[fs.Length]; fs.Read(blob, 0, blob.Length); fs.Close();string sql = "insert into TZ_T... 阅读全文
posted @ 2012-06-26 17:47 Rain&Sun 阅读(467) 评论(0) 推荐(0)
摘要: 使用ASP.NET建立网站,一般一个F5键就直接跳到浏览器页面了;如果想要调试的话,直接用Console.WriteLine() 打印出各种信息行不行呢?回到Visual Studio下,我不知道哪里能看到Console输出的信息。用System.Diagnostics.Debug.WriteLine(...)代替 Console.WriteLine(..) 是个很好的选择。然后在菜单栏选择 View -> Output 就能在运行网站的同时看到打印出的各种信息了。 阅读全文
posted @ 2012-06-26 10:04 Rain&Sun 阅读(517) 评论(0) 推荐(0)