public ImageBean getImage(int idimage){
		
		ImageBean imageBean = null;
		
		try {
			PreparedStatement statement = connection.prepareStatement(GET_IMAGE_BY_ID);
			statement.setString(1, new Integer(idimage).toString());
			ResultSet resultSet = statement.executeQuery();
			
			if(resultSet.next() == false) return null;
			
			idimage = Integer.parseInt(resultSet.getString("idimage"));
			int libraryFK = Integer.parseInt(resultSet.getString("library_fk"));
			String name = resultSet.getString("name");
			byte[] data = (byte[])resultSet.getObject("data");
			
			imageBean = new ImageBean(idimage, libraryFK, name, data);
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}
		
		return imageBean;
	}