how to know actual file type in java -
i have file example 5555.33 in fact file arj archive file
string ext = filenameutils.getextension("c:\\5555.33");
the extension returns 33 file. how actual file type arj file
arj archive files start 0x60, 0xea bytes. read first 2 bytes determine whether file arj archive or not.
Comments
Post a Comment