Uploading the file and saving it in your database:
You can use the following code c#
private void pdfuploadBtn_Click(object sender, EventArgs e)
{
OpenFileDialog Openpdf = new OpenFileDialog();
Openpdf.Filter = "PDF files|*.pdf|All files|*.*;";
if (Openpdf.ShowDialog() == DialogResult.OK)
{
string pdfLog = Openpdf.FileName.ToString();
pdfUploadbox.Text = pdfLog;
axAcroPDF1.src = Openpdf.FileName;
}
if (axAcroPDF1.src == null)
{
MessageBox.Show("Try new file");
}
else { MessageBox.Show("PDF Uploaded"); }
}