A simple way to show content stored in your DB is to create another PHP script, say show_content.php.
From your HTML you would do something like:
<img src="show_content.php?id=444" />
This will call your script with $_GET['id'] === '444'
In the script, let assume you have a functions called get_blob($id) and get_blob_content_type($id). Your peseudocode in show_content.php would look like:
header('Content-Type: ' . get_blob_content_type($id), true);
echo get_blob($id);
Where get_blob_content_type() returns something like image/jpg and get_blob() returns the actual content.
Bonus concept: If your blobs have associated file names (for example, you stored the blob alongside its original filename, say cat.jpg), you can specify this to the browser, so if the user right-clicks and selects save, they will get the original file name. All you have to do is add the following code before the echo statement:
header('Content-Disposition: inline; filename="' . get_blob_file_name($id) ."');
(make sure you don't have quotes in your filenames!)
header('Content-Length: '.strlen($data)); header("Content-type: image/png"); echo $data;