图片数据存入数据库:
sqlstr="select * from "&tbname&" where id is null"
set rs=server.createobject("adodb.recordset")
rs.Open sqlstr,conn,1,3
rs.AddNew ()
rs("title")=title
rs("filename")=filename
rs("filetype")=filetype
rs("thelevel")=thelevel
rs("uploaddate")=date()
rs("uploadip")=request.ServerVariables("REMOTE_ADDR")
rs("contenttype")=contenttype
rs("data").AppendChunk (binstr)
rs("size")=size
rs...[ 查看全文 ]