Probably you have seen a lot of websites which have download facilities. You can give the link of the file in your site which can be a threat for your site because, the user can be able to know where have you put the file.Then what can be the solution?
You can use BINARYWRITE in asp.net which will solve the above problem. Here is the code for BinaryWrite
FileStream MyFileStream = new FileStream(@”d:\inetpub\wwwroot\Afile.pdf”, FileMode.Open);
FileSize = MyFileStream.Length;
byte Buffer = new byte[(int)FileSize];
MyFileStream.Read(Buffer, 0, (int)MyFileStream.Length);
Response.AddHeader( “content-disposition”,”attachment; filename=AnotherPdf.PDF”);