일상 기록 창고

이미지 경로 숨기기.. 본문

프로그래밍/ASP

이미지 경로 숨기기..

Crazy_Kong 2006. 5. 15. 08:52

<%
     Dim file, binFile, oStream

     file = Request("file")
     file = Server.MapPath(".\") & "\upload\" & file               ' 경로를 맞게 수정
     file = Replace(file, "KTF_Downshop", "KTF_Downshop\Admin")

     Set oStream = CreateObject("ADODB.Stream")
     oStream.Type = 1
     oStream.open
     oStream.LoadFromFile file
     binFile = oStream.Read
     oStream.Close
     Set oStream = Nothing

     Response.BinaryWrite binFile
%>

 

'프로그래밍 > ASP' 카테고리의 다른 글

ms-sql 함수 모음  (0) 2006.12.29
달력 ...  (0) 2006.11.06
메인 페이지에 리스트 뿌려주는 함수  (0) 2006.05.02
요일 함수  (0) 2006.05.02
폼 값 확인하기  (0) 2006.04.27