php base64 image error 414 (Request-URI Too Large) -


i'm trying make base64 image available open graph og:image can recognized facebook, , did described in post

so code:

<?php echo '<img src="decoder.php?data='.$base64.'">'; ?> 

and decoder.php:

echo base64_decode($_get['data']); 

but have following error: 414 (request-uri large)

how can do?

edit: example thought create temp image in decoder.php redirect image, , delete after 10 minutes... don't know how it.. , if idea..

make sure u add 'data:image/png;base64,' string before echoing image data


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -