Title: Base64 Encoded Image String receives
Last modified: August 21, 2016

---

# Base64 Encoded Image String receives

 *  [app1egenius93](https://wordpress.org/support/users/app1egenius93/)
 * (@app1egenius93)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/base64-encoded-image-string-receives/)
 * Hi,
 * Great plugin! Really helps me make some useful pages for my site without having
   to create actual php files on the server (which is a huge hassle when you don’t
   have access to an FTP client 🙂 )
 * Anyways, my issue appears to be that when I attempt to echo a base64 encoded 
   string (in this case an image), I get 
   s added to the string. This only appears
   when I use [php] on the pages themselves. When using a snippet, [php snippet=
   2], the image outputs just fine.
 * This is the relevant line in my code:
    `echo '<img src="' . $v['favicon'] . '"
   width="32" height="32">';`
 * I can provide more code if needed.
 * If this issue isn’t related to your plugin, sorry just go ahead and ignore this.
 * I believe it is related though because if I copy the correct string and do `<
   img src="...">` in the text editor it works fine.
 * Thanks.
 * [https://wordpress.org/plugins/php-code-for-posts/](https://wordpress.org/plugins/php-code-for-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [app1egenius93](https://wordpress.org/support/users/app1egenius93/)
 * (@app1egenius93)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/base64-encoded-image-string-receives/#post-5162941)
 * No longer sure what exactly is going on…
 * Downloaded “Text Control” plugin and set the page “No Character Encoding” and
   the image is showing fine now. Not sure what caused it, must have been a combination
   of how wordpress formatted things sent through plugins? Not sure. But it works
   now so yeah 🙂

Viewing 1 replies (of 1 total)

The topic ‘Base64 Encoded Image String receives’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [app1egenius93](https://wordpress.org/support/users/app1egenius93/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/base64-encoded-image-string-receives/#post-5162941)
 * Status: not resolved