i have different format files in DB. i want to copy to my local machine.
how can i identify the file format (doc, xls, etc...)
Regards, krishna
Than
You can use the Tika apache library. As Dmitri pointed out however, you may have incorrect results sometimes if detecting mime type from file headers or file extension.