roberto35
30 Aug 2011, 11:41 AM
Hello,
What a title!!
I want to save some product images inside a database, i would like to display them such as a listview could do.
My problem is, at the end, i have such things for displaying images:(as this, it is working for text only)
If possible i don't want to use img reference to a filesystem path.
ListView<BeanModel> lview = new ListView<BeanModel>();
lview.setTemplate(getTemplate());
lview.setStore(store);
private native String getTemplate() /*-{
return [ '<tpl for=".">', '<div >',
'<div class="description">{description}</div>',
'<div class="price" >{price}</div>', '</div>', '</tpl>', '' ].join("");
}-*/;
But how can i handle an image as byte with this, is there a way to do it?
Thanks.
Regards.
What a title!!
I want to save some product images inside a database, i would like to display them such as a listview could do.
My problem is, at the end, i have such things for displaying images:(as this, it is working for text only)
If possible i don't want to use img reference to a filesystem path.
ListView<BeanModel> lview = new ListView<BeanModel>();
lview.setTemplate(getTemplate());
lview.setStore(store);
private native String getTemplate() /*-{
return [ '<tpl for=".">', '<div >',
'<div class="description">{description}</div>',
'<div class="price" >{price}</div>', '</div>', '</tpl>', '' ].join("");
}-*/;
But how can i handle an image as byte with this, is there a way to do it?
Thanks.
Regards.