response.Clear(); response.ContentType = "application/pdf"; response.AddHeader("content-disposition", "attachment; filename=" + fileName); response.BinaryWrite(myByteArray); response.End();