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 -> UTL_FILE.put_line() and HEXTORAW()

UTL_FILE.put_line() and HEXTORAW()

From: <spambox1_at_mindspring.com>
Date: 21 Apr 2006 12:03:42 -0700
Message-ID: <1145646222.061699.228660@e56g2000cwe.googlegroups.com>


I 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 Received on Fri Apr 21 2006 - 14:03:42 CDT

Original text of this message

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