|
以下代码是网上搬下来的,但是出错.
<%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chr(13)&chrB(10)
divider=left(formdata,clng(instr(formdata,bncrlf))-1)
datastart=instr(formdata,bncrlf&bncrlf)+4
dataend=instr(datastart+1,formdata,divider)-datastart
mydata=mid(formdata,datastart,dataend)
setconnGraph=server.CreateObject("ADODB.connection")
connGraph.ConnectionString="driver={MicrosoftAccessDriver(*.mdb)};DBQ="&server.Ma
pPath("images.mdb")&";uid=;PWD=;"
connGraph.Open
setrec=server.createobject("ADODB.recordset")
rec.Open"SELECT*FROM[images]where id isnull",connGraph,1,3
rec.addnew
rec("img").appendchunk mydata
rec.update
rec.close
setrec=nothing
setconnGraph=nothing
%>
其中第14行.出错显示
错误类型:
Microsoft VBScript 运行时错误 (0x800A0005)
无效的过程调用或参数: 'left'
/website/test1.asp, 第 14 行 |
|