in reply to Updating binary data through DBI

Use placeholders, possibly setting the TYPE in the call to execute() if you need to. See the DBI docs.