Re: img tags from external src slow down my page

2009-07-04 Thread Erik van Oosten
Hi Jim, You should do 1 in any case :) Point 2 is not so hard. Just download the file with HttpClient or the like. While you're reading from the stream you have to count bytes. Put this in a IValidator and attach it to the imageUrl textbox. If you go for point 3 then note that not all types

img tags from external src slow down my page

2009-07-02 Thread Jim Pinkham
Hi, I have an AjaxFallbackDefaultDataTable on the main page of my Wicket app with an image column like this: columns.add(new ImagePropertyColumn(new ResourceModel(imageURL), imageURL)); My item model has an imageURL string property backed by a database column, and it pretty much works

Re: img tags from external src slow down my page

2009-07-02 Thread Igor Vaynberg
its a matter of building a simple cache. all you need is a servlet that can check if the image is on disk and if not download it, then serve it from there mount the servlet on /external and rewrite your urls to be /external?url=imageurl there are probably already things like this for apache,

Re: img tags from external src slow down my page

2009-07-02 Thread nino martinez wael
Yeah I think the apache proxy mod are one good bet for this ... So if you are using apache http, just add the proxy directive.. 2009/7/2 Igor Vaynberg igor.vaynb...@gmail.com: its a matter of building a simple cache. all  you need is a servlet that can check if the image is on disk and if not