Skip to main content

images from database for dojo.fisheye

2 replies [Last post]
ndzpac
Offline
Joined: 2005-09-02
Points: 0

Hi,

Just wondering if I can use images from database in dojo.fisheye, is it possible?
Could somebody suggest me how to do it.

As I see from jmaki example about dojo.fisheye:

I tried to change it to following but didn't work:

Any suggestions?

Thanks.

PS: Posted the question in dojo forum (maintain by opensymphony) as well but I was not able to see the forum, getting error( after being a registered user):
Error: you do not have permission to view the requested forum or category.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ndzpac
Offline
Joined: 2005-09-02
Points: 0

Sorry about the post, made it working.
Thanks.

ndzpac
Offline
Joined: 2005-09-02
Points: 0

Though I made it working using following technique – in loop, for images:

images.append("{iconSrc:'/servlet/DisplayImage?imageid=" + id + "',caption:'" + name + "',index:" + (i + 1) + "},");

But this makes it slow, as there can be number of images.
So just wondering, is there a better way?
Like I can retrieve all Images in one go and store then in some ArrayList as byte[] (Using JSC for development) and may be refer them instead specify servlet for each image.

Any suggestions?