$file->dataUri()

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

  • return (string)

Example

<?= $page->file()->dataUri() ?>