title: Get image from binary data using jquery
body: <p>I am using web api to get the image from database, it is returning json data, now the image data which is coming in response is like this</p>
  
  <p>�PNG</p>
  
  <p>���
  IHDR��@������   �<code>���sRGB�������gAMA�����a��� pHYs�������o�d����IDATx^����\�uލ�x����q��N^�q��q��%v��n�H�,Y�7J"A�N��H���{�� :H�$A��wi��g���9w��H�,�u��9s�����yֳ��}��#�Á�1b��9�Ks</code>���S��1b��9s �@/́�������1b��9�ss �(&amp;}�M�^���5~���9s���
  �</p>
  
  <p>how should i convert it back, so that i can see image in my browser , using jquery</p>
  
  <p>current ajax is</p>
  
  <pre><code> $.ajax({
                  url:  "/api/v1/images/" + items.image.id + "/w" + items.image.width,
                  type: 'GET',
                  dataType: 'json',
  
                  success: function (data) {
                    $('#' + items.id).attr('src',data.responseText);
  
                  },
                  error: function (status) {
  
  
                  }
              });
  </code></pre>