Reads a bytea value from the database and writes it to stdout