5 Comments

    • Tom

      Are you using Java? Apache POI might be handy for you. This will identify them from their bytes:

      InputStream i = new ByteArrayInputStream(somebytes);
      try {
      return (POIFSFileSystem.hasPOIFSHeader(i) || POIXMLDocument.hasOOXMLHeader(i));
      } catch (IOException e) {
      e.printStackTrace();
      return false;
      }

Leave a Reply