$file->base64()

Returns the content of the file as base64 encoded string.

Example

<?php echo $page->file()->base64() ?>