title: header("content-type: image/jpg") not working on online server
body: <p>Although this command works perfectly on my localhost, I don't know why it's not working on the online server. I have tried:</p>
  
  <pre><code>$sql = "SELECT photo FROM database WHERE userID = '$uID'";
  $result = $conn-&gt;query($sql);
  $imgData = $row['photo'];
  ob_start();
  header("content-type: image/jpg");
  echo $imgData;
  ob_end_flush();
  </code></pre>
  
  <p>but nothing happened! can you help me?</p>