src/core/framework/core/3rdparty/ezcomponents/Mail/src/parts/fileparts/stream_file.php
public function generateBody()
    {
        $contents = stream_get_contents( $this->stream );
        return chunk_split( base64_encode( $contents ), 76, ezcMailTools::lineBreak() );
    }
public function generateBody()
    {
        $contents = stream_get_contents( $this->stream );
        return chunk_split( base64_encode( $contents ), 76, ezcMailTools::lineBreak() );
    }
public function generateBody ( ) { $ contents = stream_get_contents ( $ this -> stream ) ; return chunk_split ( base64_encode ( $ contents ) , 76 , ezcMailTools :: lineBreak ( ) ) ; }
Returns the contents of the file with the correct encoding.

The stream might become unusable after this if it doesn't support seek.

@return string
Returns the contents of the file with the correct encoding .