I've used JPGraph for 8 years with php5 -7. Have you run into this issue with JPGraph + PHP buffer before, please help me out. Any help is appreciated.
$graph = new Graph( 500,500, 'auto' );
... all graph settings here
$graph->Add( $curveLine );
@ob_clean();
ob_start();
$graph->Stroke(); //show .png image on browser, good
$chart_image = base64_encode( ob_get_contents() );
ob_end_clean();
echo $chart_image; //show error "cannot be displayed because it contains errors" , doesn't echo a base64 string to browser, why???