$media->dataUri()

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

  • return (string)

Example

<?= $media->dataUri() ?>

Is something missing or incorrect? Edit this page on Github…