note 128421 added to function.imagepng
| From: | Messerli at messerli dot net | Date: | Sat, 22 Apr 2023 15:26:16 +0000 |
| Subject: | note 128421 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220375@lists.php.net to get a copy of this message | ||
// Send the Image as Base64 Data directly to the browser.
// No File on the Server! No Hacker Problem.
ob_start();
imagepng($img);
$ImageData=ob_get_contents();
ob_end_clean();
echo '<img
src="data:image/jpg;base64,'.base64_encode($ImageData).'">';
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 2001:171b:c9a1:d990:18a4:2be2:6602:2d5d)
----
Manual Page -- https://php.net/manual/en/function.imagepng.php
Edit -- https://main.php.net/note/edit/128421
Del: integrated -- https://main.php.net/note/delete/128421/integrated
Del: useless -- https://main.php.net/note/delete/128421/useless
Del: bad code -- https://main.php.net/note/delete/128421/bad+code
Del: spam -- https://main.php.net/note/delete/128421/spam
Del: non-english -- https://main.php.net/note/delete/128421/non-english
Del: in docs -- https://main.php.net/note/delete/128421/in+docs
Del: other reasons-- https://main.php.net/note/delete/128421
Reject -- https://main.php.net/note/reject/128421
Search -- https://main.php.net/manage/user-notes.php