title: How to display image using extjs?
body: <p>Im new to extjs, so need help.
  I've uploaded image in my db,</p>
  
  <pre><code>        sb.append(System.getProperty("java.io.tmpdir"))
                  .append(System.getProperty("file.separator"))
                  .append("temp.jpg");
          FileOutputStream fos = new FileOutputStream(sb.toString());
          fos.write(myFileService.getImage.getBytes()); // it works ok
          fos.close();
          FileBean fb = new FileBean();
          fb.setName("temp.jpg");
          fb.setUrl(sb.toString());
          res.put("image", fb);
  </code></pre>
  
  <p>My Panel looks as in examples.. </p>
  
  <pre><code>var imgPanel = new Ext.Panel({
  
      padding: 5,
      margins: '0 0 5 5',
      id:'images-view',
      frame:true,
      collapsible:false,
      layout:'fit',
      items:  new Ext.DataView({
          store: imgStore,
          tpl: tpl,
          height:200,
          width: 200,
          multiSelect: false,
          overClass:'x-view-over',
          itemSelector:'div.thumb-wrap',
          emptyText: 'No images to display',
          plugins: [
              new Ext.DataView.DragSelector({dragSafe:true})
          ],
  </code></pre>
  
  <p>this is store </p>
  
  <pre><code>imgStore = new Ext.data.JsonStore({
  
      url: '/foo',
      root: 'image',
      fields: [
          'name', 'url'
      ]
  });
  </code></pre>
  
  <p>i get good response, but panel shows emptyText value, after store is reloaded. May be I get not correct url? if so, how to make it work? I need to save my picture in temp file, and then to show it. I think my problem is at server side. How to save it at url i need, and then to get it by this url? Help me pls....</p>