Data from Oracle array returned as bytes dump...

G

Giulio Toffoli

HI guys,

I have a problem retriving data from oracle using an array returned
from a Store Procedure. The problem is that data is returned as a dump
of bytes insteand of a string.

Example:

0x434F4D7C2A7C436F6D756E657C2A7C

instead of:
COM|*|Comune|*|

Plese note that:
C=43
O=4F
M=4D
|=7C
*=2A
|=7C
....

The code is really simple:

String[] strings =
(String[])statement.getArray(position).getArray();
for(int i=0; i<strings.length; i++)
{
System.out.println(strings););
}

The same code works for other apps.
Can be a Orcale version or JDBC version problems?
Any suggestion?

TIA

Giulio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top