08-27-2009, 01:42 PM
|
#4 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
|
Are you send the header information before echoing the binary data?
You will need to send out the following headers.
php Code:
header('Content-type: image/png;'); header('Content-length: $iamgesize);
So you code will appear something like
You cannot print out the data with other html content and must load the images through a php file, for example
html Code:
<div id="user"> <img src="load-image.php?id=23" alt="Image" /> </div>
|
|
|
|