denez wrote:Try DROID:
I hava some files that are stores on a database as binaries files but without files extensions. And i don't know why but the original file name (with extension) is not stored.
I try to retrieve the extension of file using MIME but without success for the moment. Could you tell me if there any tools in JAVA of course that i can use to retrieve it ?
denez wrote:Are they valid formats? Just adding a ZIP extension after a file that is just an arbitrary number of bytes won't make it a valid ZIP.
output is :
Mime Type of File is application/octet-stream
And exactly the same result if i put again the extension '.zip'
Any other ideas ?Yes: DROID.
denez wrote:I find it hard to believe that you did some thorough research. I only posted the link to DROID a short while back, yet you claim that there is no information about what you are looking for.
Regarding DROID, why not, but is it possible to use it in my program with an import ? there is no information regarding this in the documentation.
Have you already try it ?Yes, I tried it and found that the documentation is sufficient to get started.