티스토리 뷰
이미지의 실제 경로를 숨기고 싶다거나 할때에
아래는 간략한 예제이다.
pic.asp :
과 같이 주고 소스 내부에서는 f 값을 받아서 DB에서 값을 가져오거나 하면 된다.
아래는 간략한 예제이다.
pic.asp :
<%
Response.ContentType = "image/jpeg"
f = Request.Querystring("f")
FilePath = Server.Mappath(f)
Set objStream = Server.CreateObject("ADODB.Stream")
With objStream
.Open
.Type = 1
.LoadFromFile FilePath
strFile = .Read
End With
Set objStream = Nothing
Response.BinaryWrite strFile
%>'웹프로그래밍 > ASP Classic' 카테고리의 다른 글
| Classic ASP로 네이트 인증 (Dev.Square 네이트 인증 API) (0) | 2010.12.21 |
|---|---|
| ASP에서 ImageMagick으로 썸네일 만들기 (0) | 2010.12.17 |
| [Classic ASP] pixlr API 활용법 (0) | 2010.11.23 |
| [Classic ASP] 네이버LAB 포토에디터 API 활용예제 (0) | 2010.11.23 |
| 문장에서 따옴표를 특수문자 따옴표로 변경해주기 (0) | 2010.11.22 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- sencha touch
- javascript
- iphone
- JSON
- Docker
- IE
- ASP
- Mac
- Prototype
- Android
- classic asp
- laravel
- IOS
- iis
- Wordpress
- 워드프레스
- nodejs
- API
- git
- Debug
- JQuery
- centos
- Linux
- 한글
- 안드로이드
- mssql
- macos
- PHP
- nginx
- CSS
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함