blob image to base64 php
$path = 'myfolder/myimage.png';
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
Also in PHP:
- define header in php
- fetch value from json link in php
- check session in blade laravel
- am pm date format php
- add custom helper laravel
- date'G')
- check if substring php
- basd64 decrtpy php
- "Fatal error: Allowed memory size of 1610612736 bytes exhausted " +laravel
- Create cap with php
- declare empty array php
- Best code editors for php
- echo date in php
- add one day to date in php
- db seed in laravel
- create a php live chat without no load
- Fatal error: Allowed memory size of 1073741824 bytes exhausted (trie
- check php version
- create laravel project version 5.8
- error reporting php
- create database seeder in laravel
- check if key_exists php
- export html table data to excel in php
- Jan 5, 2021 15:37:25 time format php