I am trying to access image which is saved as blob, and the type of column is image which is saved using c# in mssql
While retrieving image is showing correctly using c# code
While accessing using php the image is broken
code which i have tried
$image = imagecreatefromstring($stationDetail->cstatpic3);
ob_start();
imagejpeg($image);
$data = ob_get_contents();
ob_end_clean();
echo '<img src="data:image/jpeg;base64,' . base64_encode($data) . '" />';
exit;
also from this link