I need to generate the image converted by the base64 string. I have the following code, but when accessed via browser, it generates several invalid characters.
<?php
$string = 'hOjo6uPnmm1Gr1fT29tLU1IQoinLUMbdAJJvNEgqFOH78uJxbGI/HEQQBlUpFJpNBrVbzwAMPYDQaAdi3bx+PP/74511dXa9lMpk0MAb8YAWw3yIAcmQGyubOcPFAiAmCYKmqqnryoYceutnr9fLee+/x2WefUVNTQ2Njo+ygSaf.......';
$decoded = base64_decode($string);
echo $decoded;
?>