Due to some project requirement I have to convert my DB VARCHAR data into base64(VARBINARY). Now the problem is that while I am trying to query DB from my java application using:
criteria.createCriteria("parties").add(Restrictions.ilike("name", "%"+ "james".getBytes() +"%"));
My query returns me null while I already have base64 representation of james in my DB name column. Why?