我用无组件上传图片,图片放在服务器上了,但浏览器中无法看到,用acdsee看图软件却可正常观看,我把代码放在下边,请大家帮我看看是什么原因!谢谢!!!
<%
response.contenttype="image/jpeg"
dim formsize,fordata
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
dim objfso
set objfso=server.createobject("s cripting.filesystemobject")
objfso.createtextfile(server.mappath("lara.jpeg"))
set objts=objfso.opentextfile(server.mappath("lara.jpeg"),2,true,-1)
objts.write MIDB(FormData,DataStart,DataEnd)
set objfso=nothing
response.binarywrite MIDB(FormData,DataStart,DataEnd)
%>