Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 24, 2021 22:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/8514f0047f9082d9860052eebddface1 to your computer and use it in GitHub Desktop.
<?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