No, más bien ya tienes la imagen en binario, es simplemente que la muestres, por ejemplo en tu código inicial le mandas el id:
Código PHP:
Ver originalecho '<img src="verfoto.php?id='.$f['id'].'" width="100" heigth="100">';
En verfoto.php:
Código PHP:
Ver original$id = (int) $_GET['id'];
include 'db.inc.php';
header("Content-type: image/jpg"); echo $f['foto'];
Así te debería de mostrar la imagen.
Saludos.