摘要: 如何将图片,Mp3 ,或是一些二进制类型的数据插入到sqlserver,或是 Oracle 数据库. 方法是通过流进行操作.创建一张测试表(sqlserver2000)createtable[pictable]([id][int]identity(1,1)notnull,[img][image]notnull)on[primary]textimage_on[primary]go1,插入数据库的方法(sqlserver2000)this.getConnection() 为获得连接的方法.publicvoidinsertPic(Stringpath)...{Connectioncon=this.. 阅读全文
posted @ 2008-04-05 10:19 shine_panda 阅读(960) 评论(0) 推荐(0) 编辑