Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Downloading blob will save the file by the procedure name and not the actual file name

Re: Downloading blob will save the file by the procedure name and not the actual file name

From: Andy Finkenstadt <kahuna_at_panix.com>
Date: Mon, 6 Oct 2003 13:46:23 +0000 (UTC)
Message-ID: <blrrnf$mho$1@reader2.panix.com>


In <blqsf9$eps$1_at_reader2.panix.com> Andy Finkenstadt <kahuna_at_panix.com> writes:

>In <bloqbt$5813_at_news-dxb.emirates.net.ae> "Ahmad" <amabsout_at_yahoo.com> writes:
>>I have the filename stored in the database. Is there a way to change the
>>filename?

>Piece of cake:
>You need to add these header to the output response headers:
>Content-type: application/octet-stream; name="some quoted filename.ext"
>Content-disposition: attachment; filename="some quoted filename.ext"
>Content-transfer-encoding: BASE64

You might not need the base64 encoding if you are using straight binary write.

-- 
Andrew Finkenstadt (http://www.finkenstadt.com/andy/)
Received on Mon Oct 06 2003 - 08:46:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US