<?php
$arr = ['data:image/jpeg;base64,/9j/4AAQSkZJR....',
'....','....','..pPKf56CT/9k=',
];
$arrSize=sizeof($arr);
for ($i=0;$i<$arrSize;$i++){
echo $i;
$data = base64_decode($arr[$i]);
//echo " ".$data."</br>";
file_put_contents('image.png', $data,FILE_APPEND | LOCK_EX);
}
?>
I cannot open the image that is created, and the file size that is created is nearly 1mb. I created a txt file that opens fine with the decoded data.