To ulf
sorry , i did not means that,, i don't need to download, but user needs to download or view that doument..
So, User can upload any kind of file, pdf or doc..
and he also want to view his document in the site, so we need to download that file from mysql and show that file in new tab on user screen..
here from above code i am able to show user the pdf file he uploaded, but if he uploads .doc file,, then my servlet code fails to show the .doc file uploaded by the user..
Want solution for the same..
Thanks for trying to solving the issue..