my $sql = "UPDATE Table1 SET Image = ? WHERE Id = 1"; my $sth = $dbh->prepare($sql); $sth->execute($bindata);