title: imagecreatefromstring issues with string passed from javascript
body: <p>I am having issues sending an image as a string between Javascript and PHP. So far I have:</p>
  
  <pre><code>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAASAQMAAAByySynAAAABlBMVEUAAAD///+l2Z/dAAAAP0lEQVQImWNgPm9gwAAmbM4bH4AQzAdAYiDC/rzxByTi/+f/cIL
  </code></pre>
  
  <p>as the string which is being passed from the JS to PHP and this is verified as the image will load in chrome "as is".</p>
  
  <p>I am using PHP to then </p>
  
  <pre><code>$im = imagecreatefromstring($data);
  </code></pre>
  
  <p>This however just errors, If I remove the data:image/png;base64 bit, it works but when it comes to the larger files, this just does not work.</p>
  
  <p>I'm just wondering what I could have missed here.</p>