Finding File Type

Closed
vikisri12345 Posts 2 Registration date Monday February 2, 2015 Status Member Last seen February 3, 2015 - Feb 2, 2015 at 11:36 PM
vikisri12345 Posts 2 Registration date Monday February 2, 2015 Status Member Last seen February 3, 2015 - Feb 3, 2015 at 10:07 AM
hello,
i have a file named "sxase" in my home directory.on checking the properties i find that the file type is ".mp4".i am looking for a java code that can tell me the extension for the file name "sxase".As i am working on the project that involves implementation of this code too i dont want any tools such as "TRID" etc
THANKS IN ADVANCE
Related:

2 responses

Blocked Profile
Feb 3, 2015 at 08:20 AM
So, you want a Javascript that will hook into the OS to find out file extension? Is that right?

Give us a heads up on what you are trying to do, so that we may figure out an easier way.

"If you would have told me 20 years ago that everyone was going to be a photographer in 20 years, I wouldn't have believed you!"
0
vikisri12345 Posts 2 Registration date Monday February 2, 2015 Status Member Last seen February 3, 2015
Feb 3, 2015 at 10:07 AM
Hello dude thanks for looking into it. Too be specific "I'm not thinking about hooking into the os. If the os can find the file type using a particular code , im asking the algorithm/logic/procedure behind that code so that i could code a similar code in my referred language,pure java for this case not a java script."Will be even more useful if one can come up with the code itself"
0