Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Jul 24, 2021
Embed
What would you like to do?
<?php
$nombreImagen = "capitan.png";
$imagenBase64 = "data:image/png;base64," . base64_encode(file_get_contents($nombreImagen));
?>
<body>
Aquí una imagen:
<br>
<img src="<?php echo $imagenBase64 ?>" />
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment