carredas
02-23-2005, 05:46 AM
Hi all,
I am developping an application where I need to display jpg images under my laszlo generated client.
The jpg are on my server, but for speed question, I would like to bypass lazso server when calling setResource('http://myserver/myimages/img.jpg').
When I spy the http transfert, I can see that when I call setResource('http://myserver/myimages/img.jpg'), a lzx request is sent having http://myserver/myimages/img.jpg has parameter, wich is a waste of time in may case because the lzx request is already passing thru an apache web server and loadbalanced on tomcat thru mod_jk, and I would like this apache server to serve jpg requests.
I suppose that laszlo is calling internally my apache server to get the image, and reply my image back to the client - that overhead is clearly visible on the client part.
So my question is how use setResource() (or any other method like setSource()) in order to dynamically load a resource as straight as possible ?
thanks for your reply
Carredas
I am developping an application where I need to display jpg images under my laszlo generated client.
The jpg are on my server, but for speed question, I would like to bypass lazso server when calling setResource('http://myserver/myimages/img.jpg').
When I spy the http transfert, I can see that when I call setResource('http://myserver/myimages/img.jpg'), a lzx request is sent having http://myserver/myimages/img.jpg has parameter, wich is a waste of time in may case because the lzx request is already passing thru an apache web server and loadbalanced on tomcat thru mod_jk, and I would like this apache server to serve jpg requests.
I suppose that laszlo is calling internally my apache server to get the image, and reply my image back to the client - that overhead is clearly visible on the client part.
So my question is how use setResource() (or any other method like setSource()) in order to dynamically load a resource as straight as possible ?
thanks for your reply
Carredas