I can upload the image and save it in any location, then I convert that image in base64. but how can we do that we convert image in base64 without saving it. any solution please?
$photoTmpPath = $_FILES['filename']['tmp_name']; $data = file_get_contents($photoTmpPath); $base64 = base64_encode($data);
and if you want to test:
header('Content-type: image/png'); echo $data; exit;
1.4m articles
1.4m replys
5 comments
57.0k users