I need to read from ms sql file to adobe PDF reader
Error is line 8
Error CS0029 Cannot implicitly convert type 'System.IO.MemoryStream' to 'string'
Some help?
- try
- {
- if (documentsDataGridView.SelectedRows[0].Cells["pdf_file"].Value != null)
- {
- byte[] ap = (byte[])documentsDataGridView.SelectedRows[0].Cells["pdf_file"].Value;
- MemoryStream ms = new MemoryStream(ap);
- axAcroPDF1.src = ms;
- }
- else {
- axAcroPDF1.src = null;
- }
- }
- catch
- {
- axAcroPDF1.src = null;
- }
Goran BibicPosted Jul 20, 2018, 3:07 AM
Goran BibicPosted Jul 20, 2018, 1:59 AM
Goran BibicPosted Jul 19, 2018, 12:42 AM
Jenith ThakkarPosted Jul 18, 2018, 11:36 PM