Blob image not displaying in php
so i'm having a small problem in displaying a BLOB from my database , I tried everything but with no results , just some ugly characters , I know it's something silly but it drives me crazy , here is the code:
} ?> In my database picture is set to 'blob' , the rest is simple , I also have a print("$output") on my page but that has nothing to do with this , I hope there could be someone free to help :D Create a new PHP file getSession(); if (!isset($sess->username) || empty($sess->username) || !$sess->isPrivilegedUser()) { header('Location: index.php'); exit; } $page = new \Equipment\Page; $page->printHeader("AnyCo Corp. Upload Logo"); $page->printMenu($sess->username, $sess->isPrivilegedUser()); printcontent($sess); $page->printFooter(); // Functions ?> Add the /** * Print the main body of the page * * @param Session $sess */ function printcontent($sess) { echo " This is in the now familiar two part structure with an HTML form and a form-handler. The Complete /** * Print the HTML form to upload the image * * Adding CSRF protection is an exercise for the reader */ function printform() { echo << |