Ok, the problem has been resolved..
I was damn foolish to rs.getString the BINARYFILE. Later , I changed to rs.getBytes , and everything worked fine.
But, now I have one problem:
How can I print the content of the .doc file on the browser ?
I mean , what MIME type I have to use ?
I have tried using "application/msword" , but it is prompting to download rather than printing the content .
the "text/plain" and "text/html" are printing unwanted ascii characters and that looks horrible
Can you please help me ?