Skip to content
Loading
  • Laxmidhar Sahoo
    +1
    hi
    In windos opendilog used
     
    1.  private void selectButton_Click(object sender, EventArgs e)  
    2.     {  
    3.         if (openFileDialog1.ShowDialog() == DialogResult.OK)  
    4.         {  
    5.             try  
    6.             {  
    7.                 var filePath = openFileDialog1.FileName;  
    8.                   
    9.             }  
    10.             catch (SecurityException ex)  
    11.             {  
    12.                  
    13.             }  
    14.         }  
    15. }  
     
    +1
  • 0
    How to upload file? Memory stream?
    0
  • 0
    How to open this file from db to adobe reader or default pdf reader?
    0
  • Laxmidhar Sahoo
    0
    hi
     
    1-Select the byte array from the database then
     
    using system.io 
    File.WriteAllBytes(@"C:\testpdf.pdf", myArrayOfBytes); 
    0