$file->dataUri()

Returns a full base64 encoded data uri with a proper mime type.

Example

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