关于response.BinaryWrite的方法怎么应用呀
我在网上搜了许多但是都解释的不详细!请问哪个仁兄有这个方面的例子,和解释呀,用处我从字面是看是输出二进制数据,可是在那里应用呢?
例子
' 下载文件
Response.Clear
Response.ContentType = "application/octet-stream"
Response.AddHeader "content-disposition", "attachment; filename="&name
Set Stream = server.CreateObject("ADODB.Stream")
Stream.Type = adTypeBinary
Stream.Open
Stream.LoadFromFile Server.MapPath(FileName)
While Not Stream.EOS
Response.BinaryWrite Stream.Read(1024 * 64)
Wend
Stream.Close
Set Stream = Nothing