Download From Database

Results 1 to 3 of 3

Thread: Download From Database

  1. #1
    Tom Layte Guest

    Default Download From Database

    I have made a page that allows users to upload a file to a BLOB in a database.<BR>I also store the name of the file, the content type of the file and some other specific info that you dont need to worry about.<BR>What i need to do is allow other users to download these files.<BR>I tried using the stored content type and the binary write function but that makes it always try to save it as dl.asp (the name of the script) is there any way around this problem?<BR>Preferably without using 3rd party components or writing a temporary file.<BR>Thanks in advance<BR><BR>Tom

  2. #2
    Join Date
    Dec 1969

    Default RE: Download From Database

    Can you create a link to download a file from the database?<BR><BR>Robert

  3. #3
    Tom Layte Guest

    Default RE: Download From Database

    What do you mean?<BR><BR>I expect I COULD write the file that is stored in the database to a temporary file.<BR>But im making this script for someone else, and i want to make it as easy to set up as possible.<BR>Also i wouldn&#039;t know how to delete the temp file when its done downloading.<BR><BR>What i really need is a way to make the browser think the name of the file its downloading is the name of the original file, not the name of the asp script.<BR><BR>Im sure i&#039;ve seen cgi scripts do that before.

Posting Permissions

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