File file = new File(path); byte[] bFile = new byte[(int) file.length()]; try { FileInputStream fis=new FileInputStream(path); bFile = new byte[fis.available()+1]; } catch (Exception e) { e.printStackTrace(); } user.setImage(bFile); getHibernateTemplate().save(user);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)