$media->base64()

Returns the content of the file as base64 encoded string

  • return (string)

Example

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