You need to use a bind variable to submit binary data to the database.
my $sql = "UPDATE Table1 SET Image = ? WHERE Id = 1";
my $sth = $dbh->prepare($sql);
$sth->execute($bindata);
Assuming that you have loaded binary data into $bindata variable earlier.
You may need to tell the database driver the size of your binary data in bytes, check the database driver manual to find out the exact command to do this.