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

Home -> Community -> Usenet -> c.d.o.server -> Re: Web Toolkit Question

Re: Web Toolkit Question

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Thu, 16 Sep 1999 07:52:09 -0400
Message-ID: <yNngN8qe7WDg0RMYf65tcia0Ufny@4ax.com>


A copy of this was sent to Milo_at_Netway.com (Miles O. Remington) (if that email address didn't require changing) On Wed, 15 Sep 1999 22:08:54 GMT, you wrote:

>Thanks Christopher! Do you know what content type should I use?
>

application/octet-stream

should do it (equivalent of "binary stuff coming" do something with it)

>
>
>On Wed, 15 Sep 1999 17:41:28 -0400, Christopher Beck
><clbeck_at_us.oracle.com> wrote:
>
>>On Wed, 15 Sep 1999 19:23:59 GMT, Milo_at_Netway.com (Miles O. Remington) wrote:
>>
>>>I have this HTML form where depending on the options the user selects
>>>there are times when I want to return a data stream to the user
>>>instead of HTML. I want that little dialog box to come up in their
>>>browser that asks them where they want to save the file and what to
>>>name it. I suspect that I need to change the mime type but how and
>>>what to? Can I use htp.print to do everything like:
>>>htp.print('content-type ??/??\n\n');
>>>htp.print('first line of data');
>>>htp.print('next line of data');
>>>etc...
>>>
>>>Is that how or do I need to use something else in the toolkit?
>>>
>>
>>You should use this.
>>
>> owa_util.mime_header( <content-type-here> );
>>
>>
>>
>>hope this helps.
>>
>>
>>chris.
>>
>>
>>>Thanks!
>>>
>>>
>>>"Let us pass over the river, and rest
>>> Under the shade of the trees."
>>
>>
>>--
>>Christopher Beck
>>Oracle Corporation
>>clbeck_at_us.oracle.com
>>Reston, VA.
>>----------------------------------------------------------------------------
>>Opinions are mine and do not necessarily reflect those of Oracle Corporation
>
>"Let us pass over the river, and rest
> Under the shade of the trees."

--
See http://govt.us.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Thu Sep 16 1999 - 06:52:09 CDT

Original text of this message

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