Created
November 3, 2012 01:10
-
-
Save NapoleonWils0n/4005354 to your computer and use it in GitHub Desktop.
php: base64 encode image by url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-GB"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Semantic html 5</title> | |
</head> | |
<body> | |
<img src="data:image/jpg;base64,<?php echo base64_encode(file_get_contents("image.jpg")) ?>" height="19" width="78" alt="base64" /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment