C
c0371
Unregistered / Unconfirmed
GUEST, unregistred user!
请各位富翁指点,提供源码或实现方法的我将倾分谢之.
下面我自己也写了一个上传的源码,但老是出现
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] 不能更新。数据库或对象为只读。
源码如下:
<%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chrb(13) & chrb(10)
divider=leftb(formdata,instrb(formdata,bncrlf)-1)
datastart=instrb(formdata,bncrlf&bncrlf)+4
dataend=instrb(datastart+1,formdata,divider)-datastart
mydata=midb(formdata,datastart,dataend)
set conn=server.createobject("ADODB.CONNECTION")
conn.connectionstring="DSN=image"
Conn.Open
set Rec=server.createobject("ADODB.recordset")
rec.open "SELECT * FROM Img where id is null",conn,1,3
rec.addnew
rec("img").appendchunk mydata
rec.update
rec.close
set rec=nothing
set conn=nothing
%>
烦请各位富翁指出问题所在,我被这个问题缠了好久了,一直解不开!
下面我自己也写了一个上传的源码,但老是出现
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] 不能更新。数据库或对象为只读。
源码如下:
<%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chrb(13) & chrb(10)
divider=leftb(formdata,instrb(formdata,bncrlf)-1)
datastart=instrb(formdata,bncrlf&bncrlf)+4
dataend=instrb(datastart+1,formdata,divider)-datastart
mydata=midb(formdata,datastart,dataend)
set conn=server.createobject("ADODB.CONNECTION")
conn.connectionstring="DSN=image"
Conn.Open
set Rec=server.createobject("ADODB.recordset")
rec.open "SELECT * FROM Img where id is null",conn,1,3
rec.addnew
rec("img").appendchunk mydata
rec.update
rec.close
set rec=nothing
set conn=nothing
%>
烦请各位富翁指出问题所在,我被这个问题缠了好久了,一直解不开!