I used pchart created a piechart by "pPie". and used "base64_encode" to encode the png image.
$code = base64_encode(file_get_contents($image_path));
$html = $html . "<td><img src='data:image/png;base64," . $code . "'/></td>\n";
The html can't display my image.I have encoded the image by online tool,I got a different code. but when I used same function to deal with other image(a line chart and a bar chart created by pchart), it worked.Do you why and how to resolve it? Thank you very much.