title: Call a blob data with ajax
body: <p>I have a code, and this code call some datas of my MySql database and then show it in a <code>&lt;p&gt;</code>, it works perfectly, but when i want to call an image that is saved in a mediumblob type, it does not work.</p>
  
  <p><strong>Here's the code</strong></p>
  
  <p><strong>Ajax.js</strong></p>
  
  <pre><code>$(document).on("ready", function() {
      $("#select").on("change", function(e) {
          var option = $(this).val();
          if(option.toLowerCase() !== "ninguno") { 
              var dataToSend = JSON.parse('{"name": "reference", "value": "'+option+'"}');
              ajaxProcess(dataToSend);
          } else { 
              $("p").each( function() {
                  $(this).html("");
              });
          }
      });
  
  
      function ajaxProcess(dataToSend) {
          $.ajax({
              url: "process.php", 
              dataType: "json", 
              data: dataToSend, 
              type: "get" 
              }
          )
          .done( function(data) {
              $("#ram").html(data["ram"]);
              $("#camara").html(data["camara"]);
              $("#imagen").html(data["imagen"]); //Here's the problem
          })
          .fail( function(jqXHR,textStatus,errorThrown) {
              console.log("Can´t get the data");
          });
      }
  }); 
  </code></pre>
  
  <p>When i select the value in a combobox, it shows the error message "Can´t get the data"</p>
  
  <p><strong>Process.php</strong></p>
  
  <pre><code>&lt;?php
  
  $connection = new mysqli("127.0.0.1","root","","labash");
  $connection-&gt;set_charset("utf8");
  
  if($connection-&gt;connect_errno)
      throw new Exception("Error al conectar a la base de datos");
  
  $stmt = $connection-&gt;stmt_init();
  $query = "SELECT ram,camara,imagen FROM celulares WHERE reference=?";
  
  if($stmt-&gt;prepare($query)) { // prepare the sentence
      $name = $_GET["value"];
      $stmt-&gt;bind_param("s", $name); //bind data
      $stmt-&gt;execute(); // execute the sentence
      $result = $stmt-&gt;get_result(); // get the result
      $connection-&gt;close();
      echo json_encode($result-&gt;fetch_assoc()); // get the data as JSON
  }
  </code></pre>
  
  <p>In the html code i call the "ram" data (for example) in a <code>&lt;p id="ram"&gt;</code> and it works, but the image doesn´t.
  Thanks Beforehand</p>