title: WorkbookFactory.create(inputStream)
body: <p>Here is my piece of code for reading file in <code>xlsx</code> and <code>xls</code> format </p>
  
  <pre><code>File customerTemplateFileObj = new File(customerTemplateFullPath);
  InputStream inputStream = new FileInputStream(customerTemplateFileObj);
  
  Workbook myWorkBook = null;
  try {
  
      ***myWorkBook = WorkbookFactory.create(inputStream);***
  } 
  catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
  }
  
  int totalSheets = myWorkBook.getNumberOfSheets();
  </code></pre>
  
  <p>My code is working fine for <code>xls</code> format but for <code>xlsx</code> its stop at </p>
  
  <pre><code>myWorkBook = WorkbookFactory.create(inputStream);
  </code></pre>
  
  <p>without any Exception.</p>