Streaming Binary Files with ASP

Results 1 to 2 of 2

Thread: Streaming Binary Files with ASP

  1. #1
    Join Date
    Dec 1969

    Default Streaming Binary Files with ASP

    I have implemented a page that streams a binary file. I used the following as a reference:<BR><BR>I have a question, is it possible to send the browser a different file name to display as the default name when this file is streamed to it? Currently, the default is process.asp (the name of the asp script file), which will not work well if it&#039s a .doc file and the user doesn&#039t know to change the extention.<BR><BR>Can you add a Response.AddHeader to accomplish this??

  2. #2
    Rob Ison Guest

    Default RE: Streaming Binary Files with ASP

    You need to send an additional header.. here is the code:<BR><BR>Response.AddHeader "Content-Disposition","attachment; filename=" & "filename.fileextentions"<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts