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
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