无组件上传文件(4)
发表于:2007-06-30来源:作者:点击数:
标签:
binaryoutputclient.asp % ‘’ Author Philippe Collignon ‘’ Email PhCollignon@email.com Response.Buffer = TRUE Response.Clear byteCount = Request.TotalBytes RequestBin = Request.BinaryRead(byteCount) Dim UploadRequest Set UploadRequest = C
binaryoutputclient.asp
<%
‘’ Author Philippe Collignon
‘’ Email PhCollignon@email.com
Response.Buffer = TRUE
Response.Clear
byteCount = Request.TotalBytes
RequestBin = Request.BinaryRead(byteCount)
Dim UploadRequest
Set UploadRequest = CreateObject("Scripting.Dictionary")
BuildUploadRequest RequestBin
email = UploadRequest.Item("email").Item("Value")
contentType = UploadRequest.Item("blob").Item("ContentType")
filepathname = UploadRequest.Item("blob").Item("FileName")
filename = Right(filepathname,Len(filepathname)-InstrRev(filepathname,""))
picture = UploadRequest.Item("blob").Item("Value")
Response.ContentType = contentType
Response.binaryWrite picture
%>
<!--#include file="upload.asp"-->
转自asptoday
原文转自:http://www.ltesting.net