title: how to load image name from database and load it into my imageview
body: <p>i have a project in which i have in my db images stored with their names only so i want to load those image with javafx </p>
  
  <p>and i have no idea how to load thos images </p>
  
  <pre><code> public void initialize(URL url, ResourceBundle rb) {
  
     // help me here to retreive my images names
     }
  </code></pre>
  
  <p>and this is my button that allows me to change my cover picture
  here is the code </p>
  
  <pre><code>  changecover.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
          @Override
          public void handle(ActionEvent event) {
              try {
                  FileChooser fileChooser = new FileChooser();
  
                  //Set extension filter
                  FileChooser.ExtensionFilter extFilterJPG = new FileChooser.ExtensionFilter("JPG files (*.jpg)", "*.JPG");
                  FileChooser.ExtensionFilter extFilterPNG = new FileChooser.ExtensionFilter("PNG files (*.png)", "*.PNG");
                  fileChooser.getExtensionFilters().addAll(extFilterJPG, extFilterPNG);
  
                  //Show open file dialog
                  File file = fileChooser.showOpenDialog(null);
  
                  BufferedImage bufferedImage = ImageIO.read(file);
                  Image image = SwingFXUtils.toFXImage(bufferedImage, null);
                  coverpic.setImage(image);
                  Groupe g = gs.getGroupe(5);
                  g.setPhoto_couverture(coverpic.toString());
                  gs.update(g);
                  //myImageView.setImage(image);
              } catch (IOException ex) {
                  Logger.getLogger(Groupe_homeController.class.getName()).log(Level.SEVERE, null, ex);
              }
  
  
          }
      });
  </code></pre>