파일다운로드
Windows/ASP : 2006/12/26 16:46
<%
Response.Expires = 0
f_path = Server.MapPath("/") & "\data\" & Request("f_name")
Response.ContentType = "application/unknown"
Response.Buffer = TRUE
Response.AddHeader "Content-Disposition","attachment;filename=" & Request("f_name")
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = 1
objStream.LoadFromFile f_path
download = objStream.Read
Response.BinaryWrite download
Set objstream = nothing
%>
TAG ASP
Trackback Address :: http://jjangu.pe.kr/blog/trackback/89



