Is there a way to put the PNG data into a variable for storage in a database rather than streaming it directly to a file or the browser? imagepng() sends it directly to the browser or a file. I want the raw data in a variable.
I'm not really familiar with the image functions, so I don't know if there is a function that can do that directly (and I don't want to look thru all the image functions to see if it exists). But you can combine the Output Control functions (http://www.php.net/manual/en/ref.outcontrol.php) with imagepng() to get the image into a variable.
Diego