Byte eng while (rs.next()) { eng = rs.getBytes("trial"); } i retrieve error Can't convert byte[] to java.lang.Byte hi how to getBytes() instead of getString()from databases
you don't have your byte defined as an array. What you have, if it could work, would only be able to contain the first byte try... byte eng[] = getbytes("test"); HTH Dan