Is there a way to render image directly from base64 code in Laravel backpack CRUD view without converting it to image file?
My reason for this is to not consume disk space. I tried viewing the documentation but only the saving of the base64 code is shown.
Thanks.
--edit--
I already have this code on my CRUD controller:
$this->crud->addColumn([ // base64_image
'label' => "Signature",
'name' => "signature_data",
'filename' => NULL, // set to null if not needed
'type' => 'base64_image',
'aspect_ratio' => 0, // set to 0 to allow any aspect ratio
'crop' => false, // set to true to allow cropping, false to disable
'src' => NULL, // null to read straight from DB, otherwise set to model accessor function
]);
signature_data field is set to LONGBLOB
But it only displays the base64 code in the CRUD view:
