I am developing an application and for that I need to generate multiple copies of same image with unique base 64 encoding.
However I am not sure that if I add a random string like "aasasa" in between my image code whether it will corrupt image or it will display properly?
Is there any way to achieve this?
$imageDataEncoded = base64_encode(file_get_contents($_FILES["fileToUpload"]["tmp_name"]));
$imageData = base64_decode($imageDataEncoded);
$imageData="asasasas".$imageData;
$source = imagecreatefromstring($imageData);
Thanks Ahmar