<!–METADATA TYPE=”typelib”
ÃÂ ÃÂ ÃÂ UUID=”00000205-0000-0010-8000-00AA006D2EA4″
ÃÂ ÃÂ NAME=”ADODB Type Library”
–>
<%
ÃÂ Dim objStream
ÃÂ Set objStream = Server.CreateObject(“ADODB.Stream”)xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /??
à‘ Ã¥ÂÂ建ä¸Â个Stream 对象.
ÃÂ objStream.Type = adTypeBinary
ÃÂ objStream.Open
ÃÂ objStream.LoadFromFile “D:\Inetpub\wwwroot\images\chunfeng.gif”
à‘ ç¨stream对象çÂÂloadfromfileæ¹æ³ÂæÂÂå¼Âä¸Â个GIFæÂÂ件.
ÃÂ
à‘ è¾Âåºstream 对象è¿ÂæÂÂ¥.
ÃÂ Response.ContentType = “image/gif”
‘ æÂÂå®ÂæÂÂä½ÂæÂÂ件类åÂÂçÂÂä¿¡æ¯,äºÂè¿Âå¶è¿Âæ¯text,å¦ÂæÂÂæ¯textè¿Âè¦ÂæÂÂå®Âæ¯ASCIIè¿Âæ¯UNICODEæ ¼å¼Â.
ÃÂ Response.BinaryWrite objStream.Read
ÃÂ objStream.Close
ÃÂ Set objStream = Nothing
à‘ æ¸Â
空.
%>
[1]