/** * Returns the content of the binary file * * @param \eZ\Publish\Core\IO\Values\BinaryFile $binaryFile * * @throws InvalidBinaryFileIdException * @return string */ public function getFileContents(BinaryFile $binaryFile) { $this->checkBinaryFileId($binaryFile->id); return $this->binarydataHandler->getContents($this->getPrefixedUri($binaryFile->id)); }