This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Retrieving string from DB2 (Z/OS) (JDBC) that does contain packed decimal value.
When I am trying to get bytes using String.getBytes("Cp1047"), I am getting correct bytes for all Excpet for 15 and 25. Rather it is resulting in swapped values for these, i.e, it is getting 25 for 15 and vice versa.
What could be the wrong? Or should I read bytes directly from ResultSet using ResultSet.getBinaryStream("COLUMN") ?
Or do 15 and 25 have some special meaning on the Java Platform. Thanks in advance.