Voting

: six plus one?
(Example: nine)

The Note You're Voting On

andronick(dot)mail(dog)gmail(dot)com
14 years ago
output images into html:

<?php

$imgfile
= "test.gif";

$handle = fopen($filename, "r");

$imgbinary = fread(fopen($imgfile, "r"), filesize($imgfile));

echo
'<img src="data:image/gif;base64,' . base64_encode($imgbinary) . '" />';

?>

gif - data:image/gif;base64,...
jpg - data:image/jpeg;base64,...
png - data:image/png;base64,...
etc.

<< Back to user notes page

To Top