Is it possible to get content type/mime type of a file from the file read as a stream from its stored location.
I am bit new to the file and stuffs, I was searching all day long but couldn't get what i have needed.
please help me out of this. thanks in advance
Edit:- Edit:
Guys thanks for your comments.
My java version is 6 and i can't trust the filename to get its mime type.