title: Have GD get image from binary string
body: <p>I have a database that stores images in a MySQL BLOB field. I setup a script that selects and displays the images based on an ID in the URL, and I also made it so if you append ?resize=800x600, it would resize the image (in this case, to 800x600).  </p>
  
  <p>The host that I use doesn't have Imagemagick installed and won't let me do it myself, so I need to use PHP's GD library to resize the image.<br>
  But I've yet to find a function like Imagick's <code>readImageBlob()</code>, so I can't edit the binary string that I get from the database without first creating a temporary file, editing it, getting the binary string from it, sending it to the browser, and then deleting it (which is waaaay too many steps, especially since this will be getting a few thousand hits when it goes into production).  </p>
  
  <p>So my question is, is there any way to replicate <code>readImageBlob</code> with PHP's GD without going through the temporary file solution?</p>