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
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
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,
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