public function getBinaryContentStream()
    {
        if ($this->hasContent()) {
            $tr = ($this->ignoreTransferEncoding) ? '' : $this->getContentTransferEncoding();
            return $this->partStreamFilterManager->getBinaryStream($tr);
        }
        return null;
    }
public function getBinaryContentStream()
    {
        if ($this->hasContent()) {
            $tr = ($this->ignoreTransferEncoding) ? '' : $this->getContentTransferEncoding();
            return $this->partStreamFilterManager->getBinaryStream($tr);
        }
        return null;
    }
public function getBinaryContentStream ( ) { if ( $ this -> hasContent ( ) ) { $ tr = ( $ this -> ignoreTransferEncoding ) ? '' : $ this -> getContentTransferEncoding ( ) ; return $ this -> partStreamFilterManager -> getBinaryStream ( $ tr ) ; } return null ; }
Returns the raw data stream for the current part, if it exists, or null
if there's no content associated with the stream.

This is basically the same as calling
{@see MessagePart::getContentStream()}, except no automatic charset
conversion is done.  Note that for non-text streams, this doesn't have an
effect, as charset conversion is not performed in that case, and is
useful only when:

- The charset defined is not correct, and the conversion produces errors;
or
- You'd like to read the raw contents without conversion, for instance to
save it to file or allow a user to download it as-is (in a download
link for example).

@param string $charset
@return StreamInterface
Returns the raw data stream for the current part if it exists or null if there s no content associated with the stream .