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 -> setBytes/getBytes on a PreparedStatement

setBytes/getBytes on a PreparedStatement

From: jeannot <jeannot.andriamp_at_gsi.fr>
Date: 17 Dec 2001 07:09:49 -0800
Message-ID: <9f49dd64.0112170709.246f84e0@posting.google.com>


Hi everybody,

I would like to store a byte stream (without '\0') in a varchar2. For that,
I use setBytes on a preparedStatement object. When I store N bytes with setBytes, I get N*2 bytes when I use getBytes to retrieve the data.

Has someone encountered this stranger phenomenon. I dont see where is the problem. may be Oracle Jdbc driver !!! I use JDK1.3.0 and jdbc:oracle:oci8

Thanks for help. Received on Mon Dec 17 2001 - 09:09:49 CST

Original text of this message

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