I am trying to download pdf files from my web site with the function below some of the files download and open up in adobe fine but others error opening into adobe with ther error "There was an error opening this document. The file is damaged and could not
be repaired". If I put the location straight into the browser url the file opens and if I open the file manually into adobe it works can anyone help.
public void DownloadFile(string location, string filename)
{
string strFunction = "general DownloadFile";
seibweb.SaveError("Got into general DownloadFile function", strFunction, HttpContext.Current.Request.UserHostAddress);
try
{
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.Clear();
response.ContentType = "Applicatio ...
Go to the complete details ...