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: using UTL_FILE and HEXTORAW()

Re: using UTL_FILE and HEXTORAW()

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 21 Apr 2006 21:09:54 +0200
Message-ID: <3fbi42dan3q61jmjiv4sar8dh5h3jqq1lo@4ax.com>


On 21 Apr 2006 11:50:46 -0700, "CJ" <spambox1_at_mindspring.com> wrote:

>need to write "binary" data, specifically a record separator byte
>(x1E), to a file. When I do so using "UTL_FILE.put_line(file_handle,
>HEXTORAW("1E"));" I end up with an ASCII hex string of "1" "E", two
>bytes not one with 0x1E followed by "newline."
>
>1) is put_line converting the HEXTORAW() output back to a string?
>2) how can I write a byte of x1E to a UTL_FILE.FOPEN() handle?
>
>Thanks in advance.
>CJ

2 Know the chr function? If not, look it up in the sql reference manual.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Apr 21 2006 - 14:09:54 CDT

Original text of this message

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