check the file is MSWORD RRS feed

All replies

  • sorry unfortunately i  submitted with out explaining.


    my problem is i need to check the document file whether it is doc file or not. becos i am going to upload the file to database.but i can only able to upload .doc file  not other than that.


    i have two is Pure Word Document and another one is i have have renamed the mp3 file into .doc now the both file will be .doc extn. so i need to compare which is original doc(Msword) and which is not MSWORD  file
     how to achieve this i need to validate  the file is doc file or other type of file but  not using the extension because any file can be renamed as .doc so  with out using the extension i nned t ofind the file is MSWord documnet or not please help me show me some sample code to do this


    Thursday, June 19, 2008 10:47 AM