我是不是在存储时有错误?
我使用以下代码存储的:
<% response.buffer=true formsize=request.totalbytes formdata=request.binaryread(formsize) bncrlf=chrB(13) & chrB(10) divider=leftB(formdata,clng(instrb(formdata,bncrlf))-1) datastart=instrb(formdata,bncrlf & bncrlf)+4 dataend=instrb(datastart+1,formdata,divider)-datastart mydata=midb(formdata,datastart,dataend) dim strsql dim rec,conn,studentrs dim strconn set conn=server.CreateObject("adodb.connection") set studentrs=server.CreateObject("adodb.recordset") conn.open "dsn=student;uid=aspbook;pwd=aspbook" set rec=server.createobject("adodb.recordset")
rec.Open "SELECT * FROM image where (id is null)",conn,1,3 rec.addnew
rec("img").appendchunk mydata rec.update rec.close set rec=nothing set conn=nothing %>