나는 그물에 고전적인 ASP 페이지를 변환하고에 .exe 파일을 스트리밍, 기존 ASP 방식을 업데이트하고이 코드 조각을 건너 온 : 나는 그물 그래서 년 전에 이런 짓을하지 않은사용자
Sub SendBinaryFile(b_FileName)
tool = Server.MapPath("bin/" & b_FileName)
Response.AddHeader "Content-Disposition", "attachment;filename=" & b_FileName
Response.ContentType = "application/octet-stream"
Set BinaryStream = CreateObject("ADODB.Stream")
BinaryStream.Open
BinaryStream.Type = 1
BinaryStream.LoadFromFile tool
Response.BinaryWrite BinaryStream.Read
BinaryStream.Close
Set BinaryWrite = Nothing
End Sub
.exe 파일을 사용자에게 스트리밍하는 올바른 방법은 무엇입니까? 감사.
가능한 중복 .... http://stackoverflow.com/questions/736301/asp-net-how-to-stream-file-to-user 닷넷에서 많은 간단합니다 http://stackoverflow.com/questions/5596747/download-stream-file-from-url-asp-net – Lloyd
사실, 다른 하나는 파일을 가져 오기 위해 URL을 형성하는 방법에 관한 것입니다. '표준 또는 모범 사례는 무엇입니까? – flavour404
'최선의 방법'이 없습니다. 당신이 게시 한 방식이 용납됩니다. –