title: I need my PHP page to show my BLOB image from mysql database
body: <p>So my last question was on how to have my techID shown from a search :</p>
  
  <p><a href="https://stackoverflow.com/questions/13216866/i-am-trying-to-have-my-details-page-to-reference-two-seperate-parts-of-my-serv">I am trying to have my &quot;Details&quot; page to reference two seperate parts of my server that are linked via techID</a></p>
  
  <p>My new question is still on this page. I have added in an echo image as well. but am having trouble using <code>Blob</code> and having it display my image and not binary JPEG data.
  I've been trying to find another instance of this but cannot find any that fix my error.</p>
  
  <pre><code>//Header ('Content-type: image/jpeg')
  echo "&lt;dt&gt;&lt;strong&gt;Technician Image:&lt;/strong&gt;&lt;/dt&gt;&lt;dd&gt;" . '&lt;img src='.$row2['image'].' width="290" height="290"&gt;' . "&lt;/dd&gt;";
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$query_Recordset2 = "SELECT * FROM technician WHERE techID=" . $row1["techID"] ;
  $Rs2 = mysql_query($query_Recordset2) or die(mysql_error());
  </code></pre>
  
  <p>Are the only changes I have put in so far from my last question (obviously including the fix I was given that worked).</p>
  
  <p>What I do not understand is where and how to put <code>'Content-type: image/jpeg'</code> to have my page recognize the image being linked is it's MIME TYPE <code>image/jpeg</code>.</p>
  
  <p>What I am seeing on my page is this</p>
  
  <blockquote>
    <p>Technician Image:
    �E��j��i`=7f$D��o"�������b���Ckkc��R��^M�;n~��0&amp;m)J��R��E)JDR��E)JDR��E)JDR��E)JDR��E)JDR��E)JDSjR��)���+��N��.R,u����i��n9,���QX~
    ����{(����̮�:���2�12��"��aV7�6���{���LP[�W�����گ� R$+�
    ��LMc'hM�5�o�PA����|���ګ���.8��E��ģ��Rn
    ��1�[��{��3>�rY��X�ۜ;<em>�Ǖ����u���z��'�vf</em>�N葟
    ��z�Q�����k��3���O��ܨ�ۀ�?S�<em>��,N</em>�    �����[{+D�
    �;�'�$�$�&amp;�iJR��)JR��)JR��)JR��)JR��)JR��)JR��)JR��)JR��)JR��)JR��)JR��)��
    width="290" height="290"></p>
  </blockquote>
  
  <p>Obviously I have deleted a middle chunk so it's not massive. there is a little "Broken image" box that appears infront and when I right click and choose "Open image in new window" the URL it puts in is simply <code>Content-type:</code> or I get a forbidden access page with the url <code>http://      localhost/Sim5Server/Pages/%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%10JFIF%EF%BF%BD%01%02%EF%BF%BD%EF%BF%BDd%EF%BF%BDd%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BDC%EF%BF%BD</code></p>
  
  <p>I have put a space in that url since it is not a link for the internet.</p>
  
  <p>I have only used normal BLOB type as I just need it as a small less than 64Kb image</p>