or download this
open(frontFILE, $imageFront.'.gif');
read (frontFILE, $blobFront, -s "$imageFront");
...
my $sth=$db->prepare("Insert INTO docs (FrontImg,BackImg,docID) va
+lues (?,?,?);
$sth->execute($blobFront, $blobBack, $docID) or die $sth->errstr;