title: set image source with base64 in jquery
body: <p>In my web application, I am storing image as a byte array in database, in a page, I want to show image in dropdown using autocomplete</p>
  
  <p>I am using below jquery code </p>
  
  <pre><code>$(function() {
      $('#userName').autocomplete({
          source: function(request, response) {
              $.getJSON("/Users/getData?term=" + request.term, function(data) {
                  response(data);
              });
          },
          select: function(event, ui) {
              $("#userName").val(ui.item.label);
              return false;
          },
  
          minLength: 2,
          delay: 100
      }).data("ui-autocomplete")._renderItem = function(ul, item) {
          return $("&lt;li&gt;&lt;/li&gt;")
              .data("item.autocomplete", item)
              .append("&lt;a&gt;" + item.value + item.Image + " - " + item.label + "&lt;/a&gt;")
              .appendTo(ul);
      };
  });
  </code></pre>
  
  <p>here item.Image is a bytearray, how to show the image here,</p>
  
  <p>thanks</p>