con.execute "CREATE tblImg (lngId COUNTER PRIMARY KEY, binImg
IMAGE)"
set
ads=createobject("adodb.stream")
ads.type=1
ads.mode=3
ads.open
ads.loadFromFile
"test.jpg"
set
rst=createobject("adodb.recordset")
rst.open
"tblImg",con,0,3,2
rst.addNew
ads.Position=0
rst("binImg").appendChunk
ads.read()
ads.close
rst.update
原文:http://www.cnblogs.com/milantgh/p/3713610.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!