On 5/5/06, James Nunnerley <[EMAIL PROTECTED]> wrote:
Doing a "readfile ($file_location)" outputs the binary... can someone point
me in the direction of being able to translate that binary into a viewable
image file?

Drop the appropriate content-type header:

header('Content-type: image/png');
readfile('/home/foo/bar.png');

Rabin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to