Tempfile should be binary.