
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x5F39;&#x51FA;&#x4FDD;&#x5B58;&#x7A97;&#x53E3;&#x4E0B;&#x8F7D;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;&#x4EFB;&#x4F55;&#x6587;&#x4EF6;&#x5B;&#x672A;&#x77E5;&#x5927;&#x5C0F;&#x5D;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x37;&#x2D;&#x30;&#x38;&#x2D;&#x33;&#x31;&#x20;&#x31;&#x30;&#x3A;&#x31;&#x30;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=5">&#x57;&#x65;&#x62;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x5728;IE&#x8FDB;&#x884C;&#x6587;&#x6863;&#x94FE;&#x63A5;&#x65F6;,&#x5982;&#x679C;&#x9047;&#x5230;OLE&#x652F;&#x6301;&#x7684;&#x6587;&#x6863;,IE&#x4F1A;&#x81EA;&#x52A8;&#x8C03;&#x7528;&#x76F8;&#x5E94;&#x7A0B;&#x5E8F;&#x6253;&#x5F00;&#x5B83;,&#x6709;&#x65F6;&#x5019;&#x8FD9;&#x79CD;&#x529F;&#x80FD;&#x5E76;&#x4E0D;&#x662F;&#x6211;&#x4EEC;&#x6240;&#x9700;&#x7684;&#xFF0C;&#x867D;&#x7136;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x63D0;&#x9192;&#x7528;&#x6237;&#x7528;&#x9F20;&#x6807;&#x53F3;&#x952E;--&gt;&#34;&#x76EE;&#x6807;&#x53E6;&#x5B58;&#x4E3A;....&#34;&#x547D;&#x4EE4;&#x6765;&#x4E0B;&#x8F7D;&#x6587;&#x6863;&#xFF0C;&#x4F46;&#x8FD9;&#x6837;&#x6BD5;&#x7ADF;&#x4E0D;&#x592A;&#x53CB;&#x597D;&#xFF0C;&#x672C;&#x6587;&#x63CF;&#x8FF0;&#x4E86;&#x5229;&#x7528;FSO&#x53CA;Stream&#x65B9;&#x6CD5;&#x5B9E;&#x73B0;IE&#x76F4;&#x63A5;&#x4E0B;&#x8F7D;&#x6587;&#x6863;&#x3002;&#x4E3B;&#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%<br/>Sub SaveFile(sFile)<br/>&#160;&#160;&#160;&#160;Dim sPath,objTs,objFso,F<br/>&#160;&#160;&#160;&#160;sPath = Server.MapPath(sFile)&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.Buffer = True&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.Clear&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Set objTs = Server.Cr&#101;ateObject(&#34;ADODB.Stream&#34;)&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;objTs.Open&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;objTs.Type = 1&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;On&nbsp;&nbsp;Error&nbsp;&nbsp;Resume&nbsp;&nbsp;Next&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Set objFso = Server.Cr&#101;ateObject(&#34;Scripting.FileSystemObject&#34;)<br/>&#160;&#160;&#160;&#160;If Not objFso.FileExists(sPath) Then <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Response.Write(&#34;&lt;h1&gt;Error:&lt;/h1&gt;&#34;&amp;sPath&amp;&#34;&#x4F60;&#x8981;&#x4E0B;&#x8F7D;&#x7684;&#x6587;&#x4EF6;&#x4E0D;&#x5B58;&#x5728;&#xFF01;&lt;p&gt;&#34;)&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Response.End&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;End&nbsp;&nbsp;If<br/>&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;Set objFile = objFso.GetFile(sPath)&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;objTs.LoadFromFile(sPath)<br/>&#160;&#160;&#160;&#160;If Err Then&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Response.Write(&#34;&lt;h1&gt;Error&#xFF1A; &lt;/h1&gt;Unknown Error&#xFF01;&lt;p&gt;&#34;)&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Response.End <br/>&#160;&#160;&#160;&#160;End If&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;Response.AddHeader &#34;Content-Disposition&#34;,&#34;attachment;filename=&#34;&amp;objFile.name&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.AddHeader &#34;Content-Length&#34;,objFile.Size&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.CharSet = &#34;GB2312&#34;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.ContentType = &#34;application/octet-stream&#34;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.BinaryWrite&nbsp;&nbsp;objTs.Read&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.Flush&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;objTs.Close&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Set objTs = Nothing<br/>End Sub<br/>Call SaveFile(&#34;test.asp&#34;)<br/>%&gt;<br/>C#&#x7248;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%@ WebHandler Language=&#34;C#&#34; Class=&#34;Download&#34; %&gt;<br/>using System;<br/>using System.Web;<br/>using System.IO;<br/>public class Download : IHttpHandler {<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;public void ProcessRequest (HttpContext context) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;byte[] buffer;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileInfo file = new FileInfo(context.Server.MapPath(&#34;/rp Source.rar&#34;));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;using (FileStream fs = new FileStream(file.FullName, FileMode.Open, FileAccess.Read))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buffer = new byte[fs.Length];<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fs.Read(buffer, 0, (int)fs.Length);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.Response.ContentType = &#34;application/octet-stream&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.Response.AddHeader(&#34;Content-Disposition&#34;, &#34;attachment;FileName=&#34; + file.Name);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.Response.AddHeader(&#34;Content-Length&#34;, file.Length.ToString());<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.Response.BinaryWrite(buffer);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;context.Response.End();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;public bool IsReusable {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return false;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x5F39;&#x51FA;&#x4FDD;&#x5B58;&#x7A97;&#x53E3;&#x4E0B;&#x8F7D;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;&#x4EFB;&#x4F55;&#x6587;&#x4EF6;&#x5B;&#x672A;&#x77E5;&#x5927;&#x5C0F;&#x5D;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
