I want to read a ppt file i tried to read file using apache.poi library API. This is what i tried .
POIFSFileSystem posF = new POIFSFileSystem(fileInputStream);
it throws the following error
java.io.IOException: Invalid header signature; read 4851293027410584380, expected -2226271756974174256
at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:112)
at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:151)
This question has been asked on stackoverflow many times and i tried all the suggested solutions but it was of no use.