[求助]解释一段代码
sub photoaddtitle=Trim(Request.QueryString("Title"))
picgroup=Trim(Request.QueryString("picgroup"))
readme=Trim(Request.QueryString("readme"))
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)'上面总共是取得图片的二进制数据
sql="select title,picgroup,pic,picsize,viewtype,readme from [Photo] order by id desc"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql,conn,3,2
rs.addnew
rs(0)=title
rs(1)=picgroup
rs(2).appendchunk mydata
rs(3)=formsize
set r=conn.execute("select viewtype from [picgroup] where title='"&picgroup&"'")
if not(r.bof and r.eof) then
rs(4)=r(0)
end if
r.close
rs(5)=readme
解释一下这段代码是啥意思,我主要是找到那个限制图片大小的代码。谢谢