title: Apache POI insert image
body: <p>I am having troubles with inserting a picture in an excel sheet im making.
  There are a lot of question about this subject, but I simply cannot figure out what am I doing wrong.
  My code runs, shows no errors but I do not see an image inserted :(</p>
  
  <p>here is  the code:</p>
  
  <pre><code>    InputStream is = new FileInputStream("nasuto_tlo.png");
      byte [] bytes = IOUtils.toByteArray(is); 
      int pictureIndex = wb.addPicture(bytes, Workbook.PICTURE_TYPE_PNG);
      is.close();
  
      CreationHelper helper = wb.getCreationHelper();
      Drawing drawingPatriarch = sheet.createDrawingPatriarch();
      ClientAnchor anchor = helper.createClientAnchor();
  
      anchor.setCol1(2);
      anchor.setRow1(3);
      Picture pict = drawingPatriarch.createPicture(anchor, pictureIndex);
      pict.resize();
  
      try {
          FileOutputStream out = new FileOutputStream(root+"/Busotina/Busotina1.xls");
          wb.write(out);
          out.close();
      } catch (Exception e) {
          e.printStackTrace();
      }
  </code></pre>