php base64图像错误414(Request-URI太大)

I'm trying to make a base64 image available for open graph og:image so it can be properly recognized by facebook, and I did what described in this post

So this is my code:

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

and this is decoder.php:

echo base64_decode($_GET['Data']);

But I have the following error: 414 (Request-URI Too Large)

How can I do?

EDIT: for example I thought to create a temp image in decoder.php then redirect to this image, and then delete it after 10 minutes... But I don't know how to do it.. and if it is a good idea..

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