$media->dataUri()

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

  • return (string)

Example

<?php echo $media->dataUri() ?>