$stmt = $dbh->prepare(INSERT INTO myBlob(name, type, data) VALUES(:name, :type, :data) $stmt->bindParam('name',$name); $stmt->bindParam('type',$type); $stmt->bindParam('data',$data);