title: PHP Alter Base64 Encoding of image
body: <p>I am developing an application and for that I need to generate multiple copies of same image with unique base 64 encoding. </p>
  
  <p>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?</p>
  
  <p>Is there any way to achieve this?</p>
  
  <pre><code>    $imageDataEncoded = base64_encode(file_get_contents($_FILES["fileToUpload"]["tmp_name"]));
  
       $imageData = base64_decode($imageDataEncoded);
       $imageData="asasasas".$imageData;
       $source = imagecreatefromstring($imageData);
  </code></pre>
  
  <p>Thanks
  Ahmar</p>