I have solved this question. I have stored the physical path of the file in the data base.For example if your project path is :
D:/Workspace_ABC/SampleProject/WebContent/D-Files/APJ.AbdulKalam.pdf
then store this path as it is in the database table. and then use this path to download file.