<%
'将图片保存到数据库中
imgsize=request.TotalBytes
imgData=request.BinaryRead(imgsize)
Hcrlf=chrB(13)&chrB(10)
Divider=leftB(imgdata,clng(instrB(imgData,Hcrlf))-1)
dstart=instrB(imgData,chrB(13)&chrB(10)&chrB(13)&chrB(10))+4
Dend=instrB(dstart+1,imgdata,divider)-dstart
Mydata=MidB(imgdata,dstart,dend)
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Img where id is null"
rs.open sql,conn,1,3
on error resume next
rs.addnew
rs("Img").appendchunk mydata
rs.update
rs.close
set rs=nothing
if err=0 then
%>
<script language="javascript">
alert("文件上传成功!");
window.location.href="index.asp";
</script>
<%else%>
<script language="javascript">
alert("文件上传失败!");
window.location.href="Img.asp";
</script>
<%end if%>
红色字那部份什么意思呀,越详细越好,能把每个函数的格式也写出来那更好
谢谢了
[求助]谁能给我分析一下这句代码意思呀