Image error

this is the source to display it
header(“Content-type: $getInfo”);
echo $fileContent;
exit ;

and this is the source to store it
$fp = fopen($fileData[‘filePath’], ‘rb’);
$binaryString = stream_get_contents($fp);
$arrData = unpack(“H*hex”, $binaryString);
$fp = 0x’ . $arrData[‘hex’] ;