mysql - retrieve blob file stored in database php pdo -
i want retrieve blob file have stored in database , create link download or view of file. retrieving data entry database
if ($stmt - > rowcount() > 0) { while ($selected_row = $stmt - > fetch(pdo::fetch_assoc)) { $basicinfo[] = array('remarks' => $selected_row['remarks'], 'filename' => $selected_row['nameoffile'], 'type' => $selected_row['file_type'], 'size' => $selected_row['filesize']); } }
the column name of blob file fileblob
try added 'fileblob' => $selected_row['fileblob']
when add code no result. want know how correctly retrieve blob file , able show/download using link.
fyi
my database looks this.