python面试宝典 pdf:ACCESS中怎么用OLE存贮图片和动画?

来源:百度文库 编辑:高校问答 时间:2024/04/29 16:52:56
我想用OLE方式将头像保存,可是不知该怎么做,出不知存好了想显示出来怎么办,还请高手指点一二,在此谢过!^-^

显示数据的图片
Response.ContentType = showFile.Fields("fileContentType").Value
Response.BinaryWrite showFile.Fields("fileContent").GetChunk(showFile.Fields("fileContent").ActualSize)

利用你的上传组建,写到数据库,下面是ChinaASP.UpLoad组建的方法

set fileUp=server.createobject("ChinaASP.UpLoad")
set f=fileUp.files("F1")
uploadFile("fileContentType")=f.ContentType
uploadFile("fileName")=f.filename
uploadFile("fileSize")=f.filesize
uploadFile("fileContent").AppendChunk f.filecontent