Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: UTL_FILE replaces 0A by 0D 0A
Kalle Heuwes schrieb:
> Hi !
>
> This problem arises on Oracle 9.2.0.6.0 with Microsoft Windows.
>
> I have to write hex values to a text file and do it by
> UTL_FILE.put_line(pin_filehandle, pic_text);
>
> On Unix-servers everything is OK. On Windows-Servers a hex value of
> "A6 0A 32" is written to file as
> "A6 0D 0A 32". Thus the file is destroyed for the application that has
> to read the file.
>
Kalle,
this behaviour is expected an documented in the
Supplied PL/SQL Packages and Types Reference for Oracle 9i:
"PUT_LINE terminates the line with the platform-specific line
terminator
character or characters."
Try using UTL_FILE.put instead.
Urs Received on Tue Sep 12 2006 - 04:23:03 CDT
![]() |
![]() |