$sth = $dbh->prepare("exec my_proc ?"); $sth->bind_param(1, $packed, SQL_BINARY); $sth->execute;