error in dwonloading a pdf file

hello ranchers, Posted below is my code to download a file from server.This workign fine for .doc ,outlook files.But the same fails to work for .pdf I m getting Adobe Reader could not open file because it is either not a supported file type or because file has been damaged"

Any help will be appreciated.Please treat request on high priority... Thanks in advance