스트림을 이용한 파일 다운로드
Response.ContentType = "application/unknown"
Response.AddHeader "Content-Disposition","attachment; filename=저장할파일명"
Set oStream = Server.CreateObject("ADODB.Stream")
oStream.Open
oStream.Type = 1
oStream.LoadFromFile Server.MapPath("다운받을파일경로")
download = oStream.Read
Response.BinaryWrite download
Set oStream = nothing
'ASP' 카테고리의 다른 글
[ASP] 에러메세지 모음 (0) | 2009.06.18 |
---|---|
[ASP] 자주쓰는 request.serverVariables 컬렉션 멤버 몇가지 (0) | 2009.06.18 |
[ASP] 웹페이지 내용을 Excel파일로 저장하기 (0) | 2009.06.18 |
ASP에서 정규식 사용 (0) | 2009.06.18 |
ASP에서 DB(MSSQL)저장시 Decimal 타입의 데이터 사이즈 설정하기 (0) | 2009.06.18 |