Binary file download

Results 1 to 2 of 2

Thread: Binary file download

  1. #1
    Chrace Guest

    Default Binary file download

    2 in 1:<BR>1st: When my normal download gives the first pop-up, it has a nasty <BR>"You have chosen to download a file from this location<BR>dl.asp?doc=15 from"<BR><BR>How do I get rid of that dl.asp?doc=xx and get a real file name instead? I am already using the Response.Addheader "Content-Disposition", "attachment; filename=myfile.doc"<BR><BR>2nd: I am trying to do the same, but with only ASP/ADO components. My idea so far is:<BR><BR>Set oBS = Server.CreateObject( "ADODB.Stream" )<BR>oBS.Open<BR>bsBinStream = oBS.LoadFromFile( sPath )<BR>Response.BinaryWrite( bsBinStream )<BR>oBS.Close<BR><BR>Also using the Response.Addheader as in 1st. On this one I get an error instead, though I, as far as I can tell, am doing exactly the same as before. Any ideas?

  2. #2
    Chrace Guest

    Default Sidenote

    Forget the 2, if the 1 can be fixed I think it&#039s working.<BR><BR>The error message with the binary dl is:<BR>"..cannot download dl.asp?doc=xyz.doc from..."<BR><BR>How do I set the header information correct on this one?

Posting Permissions

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