src/Type/AbstractBinaryType.php
public function encode($value, Field $field, Codec $codec = null)
    {
        $value = trim($value);
        if ($value === '') {
            return null;
        }

        return $this->encodeToBase64 ? base64_encode($value) : $value;
    }
public function encode($value, Field $field, Codec $codec = null)
    {
        $value = trim($value);
        if ($value === '') {
            return null;
        }

        return $this->encodeToBase64 ? base64_encode($value) : $value;
    }
public function encode ( $ value , Field $ field , Codec $ codec = null ) { $ value = trim ( $ value ) ; if ( $ value === '' ) { return null ; } return $ this -> encodeToBase64 ? base64_encode ( $ value ) : $ value ; }
{@inheritdoc}
{